2015-08-23 74 views
0

每次我给出任何包的命令,在这种情况下,对于ggplot2,几分钟后我会得到这个命令。我错过了一些东西,但无法弄清楚什么。提前致谢!R包中的依赖性错误

ERROR: dependency ‘plyr’ is not available for package ‘reshape2’ 
* removing ‘/home/cj/R/x86_64-pc-linux-gnu-library/2.14/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/cj/R/x86_64-pc-linux-gnu-library/2.14/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/cj/R/x86_64-pc-linux-gnu-library/2.14/ggplot2’ 
Warning in install.packages : 
    installation of package ‘ggplot2’ had non-zero exit status 

The downloaded packages are in 
    ‘/tmp/RtmpAXVGC6/downloaded_packages’ 
+0

*给出任何包的命令*是什么意思?你的代码在哪里? –

回答

1

你是R 2.14。请请升级到过去几年的东西 - 最好从当前年,如R 3.2.0,3.2.1或最近发布的3.2.2。

简单地说,你是在试图期望当前和维护良好的归档为当前版本的用户也应该公布,多年以前版本的工作是不合理的。