R包中的依赖错误

时间:2015-08-23 23:36:34

标签: linux r ggplot2 installation install.packages

每次我给任何包的命令,在这种情况下为ggplot2,我会在几分钟后得到它。我错过了什么,但无法弄清楚是什么。提前谢谢!

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’

1 个答案:

答案 0 :(得分:1)

你在R 2.14。请请升级到过去几年的某些内容 - 最好是从当年升级,例如R 3.2.0,3.2.1或最近发布的3.2.2。

简单地说,你试图期望当前并且为当前版本的用户存档的良好维护也应该与多年发布的版本一起使用是不合理的前。