linux - R包中的依赖错误

标签 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’

最佳答案

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

简而言之,您试图期望当前和为当前版本的用户保存的良好存档也应该与发布多年的版本一起使用是不合理的以前。

关于linux - R包中的依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32172608/

相关文章:

linux - 使用一个文件从另一个文件中提取指定的行

r - 分类变量的离散轴间距

r - 二因子条形图

r - 将 R 基本图转换为主题 GGplot

没有头文件的C程序

c - 如何设置以 root 身份使用 execl 以用户身份启动应用程序?

linux - 在Linux单板计算机上安装USB以在C程序中使用

R qqplot aes_中的函数和数据列的函数

r - 如何从 stackexchange 主页抓取 "table like"数据? (在 R 中)

r - 抑制单个警告/错误消息