求高手指点,我要安装R语言的一个叫pcalg包的,但是安装时有两个相关的包graph和RBGL装不上。安装过程如下:
> chooseCRANmirror()
> utils:::menuInstallPkgs()
Warning: dependencies ‘graph’, ‘RBGL’ are not available
also installing the dependencies ‘igraph’, ‘ggm’, ‘corpcor’, ‘robustbase’, ‘vcd’, ‘Rcpp’, ‘RcppArmadillo’, ‘BH’
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/igraph_0.7.1.zip'
Content type 'application/zip' length 7368442 bytes (7.0 Mb)
opened URL
downloaded 7.0 Mb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/ggm_2.1.zip'
Content type 'application/zip' length 474353 bytes (463 Kb)
opened URL
downloaded 463 Kb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/corpcor_1.6.6.zip'
Content type 'application/zip' length 83902 bytes (81 Kb)
opened URL
downloaded 81 Kb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/robustbase_0.91-1.zip'
Content type 'application/zip' length 2792458 bytes (2.7 Mb)
opened URL
downloaded 2.7 Mb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/vcd_1.3-1.zip'
Content type 'application/zip' length 1104531 bytes (1.1 Mb)
opened URL
downloaded 1.1 Mb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/Rcpp_0.11.2.zip'
Content type 'application/zip' length 3014318 bytes (2.9 Mb)
opened URL
downloaded 2.9 Mb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/RcppArmadillo_0.4.300.8.0.zip'
Content type 'application/zip' length 1555159 bytes (1.5 Mb)
opened URL
downloaded 1.5 Mb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/BH_1.54.0-2.zip'
Content type 'application/zip' length 10218171 bytes (9.7 Mb)
opened URL
downloaded 9.7 Mb
trying URL 'http://ftp.ctex.org/mirrors/CRAN/bin/windows/contrib/3.1/pcalg_2.0-2.zip'
Content type 'application/zip' length 5123645 bytes (4.9 Mb)
opened URL
downloaded 4.9 Mb
package ‘igraph’ successfully unpacked and MD5 sums checked
package ‘ggm’ successfully unpacked and MD5 sums checked
package ‘corpcor’ successfully unpacked and MD5 sums checked
package ‘robustbase’ successfully unpacked and MD5 sums checked
package ‘vcd’ successfully unpacked and MD5 sums checked
package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
package ‘BH’ successfully unpacked and MD5 sums checked
package ‘pcalg’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Documents and Settings\Administrator\Local Settings\Temp\RtmpeaQTyl\downloaded_packages
> local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE)
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘RBGL’
Error: package or namespace load failed for ‘pcalg’
> local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE)
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
>
我的电脑是32位的,paclg的基本信息如下:R> toLatex(sessionInfo())
• R version 2.14.1 (2011-12-22), x86_64-unknown-linux-gnu
• Locale: LC_CTYPE=de_CH.UTF-8, LC_NUMERIC=C, LC_TIME=en_US.UTF-8,
LC_COLLATE=de_CH.UTF-8, LC_MONETARY=en_US.UTF-8, LC_MESSAGES=de_CH.UTF-8,
LC_PAPER=C, LC_NAME=C, LC_ADDRESS=C, LC_TELEPHONE=C,
LC_MEASUREMENT=de_CH.UTF-8, LC_IDENTIFICATION=C
• Base packages: base, datasets, graphics, grDevices, grid, methods, stats, utils
• Other packages: abind 1.4-0, corpcor 1.6.2, fortunes 1.4-2, graph 1.30.0, pcalg 1.1-4,
Rgraphviz 1.31.2, sfsmisc 1.0-19
• Loaded via a namespace (and not attached): ggm 1.99-2, RBGL 1.28.0,
robustbase 0.7-8, tools 2.14.1
新手等高人指点!!!![s:12]