【问题标题】:dependency error in R packageR包中的依赖错误
【发布时间】:2023-03-12 08:58:01
【问题描述】:

每次我为任何包发出命令时,在这种情况下是 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’

【问题讨论】:

  • give the command for any package 是什么意思?你的代码呢?

标签: linux r ggplot2 installation install.packages


【解决方案1】:

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

简而言之,您不合理地期望 当前 并且为 当前 版本的用户保存良好的存档也应该适用于发布多年的版本以前。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-04-26
    • 2018-04-07
    • 1970-01-01
    • 2013-08-08
    • 2015-09-23
    • 1970-01-01
    • 2023-02-04
    相关资源
    最近更新 更多