R包中的依赖错误

dependency error in R package

每次我为任何包发出命令时,在本例中是 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’

您正在使用 R 2.14。请请升级到最近几年的版本——最好是 当年,例如 R 3.2.0、3.2.1 或最近发布的 3.2.2。

简而言之,您试图期望 current 并为 current 版本的用户保存良好的存档是不合理的也适用于多年前发布的版本。