R包的安裝錯誤ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
阿新 • • 發佈:2019-01-22
轉自:http://blog.csdn.net/earl211/article/details/48224939
我在ubuntu14.04上安裝ggplot2的時候出現一下錯誤:
[plain] view plaincopyprint?- ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
- * removing ‘/home/wq/R/x86_64-pc-linux-gnu-library/3.0/reshape2’
- Warning in install.packages :
-
installation of package ‘reshape2’ had non-zero exit status
- ERROR: dependency ‘plyr’ is not available for package ‘scales’
- * removing ‘/home/wq/R/x86_64-pc-linux-gnu-library/3.0/scales’
- Warning in install.packages :
- installation of package ‘scales’ had non-zero exit status
-
ERROR: dependencies ‘plyr’, ‘reshape2’, ‘scales’ are not available for package ‘ggplot2’
- * removing ‘/home/wq/R/x86_64-pc-linux-gnu-library/3.0/ggplot2’
- Warning in install.packages :
- installation of package ‘ggplot2’ had non-zero exit status
- The downloaded source packages are in
- ‘/tmp/RtmpgbMDf6/downloaded_packages’
-
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
- * removing ‘/home/wq/R/x86_64-pc-linux-gnu-library/3.0/reshape2’
- Warning in install.packages :
- installation of package ‘reshape2’ had non-zero exit status
- The downloaded source packages are in
- ‘/tmp/RtmpgbMDf6/downloaded_packages’
- setwd("/path/where/I/downloaded/the/compressed/file")
- install.packages("plyr", repos=NULL)
- 備註:install.packages()命令的第一個引數應該改成壓縮包的名稱才能正確安裝!!!
- intall.packages("r-cran-plyr_1.8.1.orig.tar.gz",repos=NULL)