r - 无法通过命令行或手动安装 plyr 包

标签 r plyr

打字

install.packages("ggplot2")

我得到以下结果:

Installing package into ‘/home/suraj/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Warning: dependency ‘plyr’ is not available
also installing the dependencies ‘reshape2’, ‘scales’
ERROR: dependency ‘plyr’ is not available for package ‘reshape2’
* removing ‘/home/suraj/R/x86_64-pc-linux-gnu-library/3.0/reshape2’
ERROR: dependency ‘plyr’ is not available for package ‘scales’
* removing ‘/home/suraj/R/x86_64-pc-linux-gnu-library/3.0/scales’
ERROR: dependencies ‘plyr’, ‘reshape2’, ‘scales’ are not available for    package ‘ggplot2’
* removing ‘/home/suraj/R/x86_64-pc-linux-gnu-library/3.0/ggplot2’

The downloaded source packages are in
    ‘/tmp/RtmpSWlplq/downloaded_packages’
Warning messages:
1: In install.packages("ggplot2") :
   installation of package ‘reshape2’ had non-zero exit status
2: In install.packages("ggplot2") :
  installation of package ‘scales’ had non-zero exit status
3: In install.packages("ggplot2") :
  installation of package ‘ggplot2’ had non-zero exit status

当我尝试通过首先下载 plyr 包并使用来安装“plyr”包时

install.packages("plyr_1.8.2.tar.gz",repos=NULL,type="source")

我收到以下消息:

Installing package into ‘/home/suraj/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
ERROR: this R is version 3.0.2, package 'plyr' requires R >= 3.1.0
Warning message:
In install.packages("plyr_1.8.2.tar.gz", repos = NULL, type = "source") :
 installation of package ‘plyr_1.8.2.tar.gz’ had non-zero exit status

install.packages("plyr_1.8.2.tar.gz",repos=NULL)
 Installing package into ‘/home/suraj/R/x86_64-pc-linux-gnu-library/3.0’
 (as ‘lib’ is unspecified)
ERROR: this R is version 3.0.2, package 'plyr' requires R >= 3.1.0
Warning message:
In install.packages("plyr_1.8.2.tar.gz", repos = NULL) :
  installation of package ‘plyr_1.8.2.tar.gz’ had non-zero exit status

谁能指导我解决这个问题!

最佳答案

http://cran.r-project.org/src/contrib/Archive/plyr 安装 1.8.1 版的 plyr 感谢@nicola 在这方面帮助我,一切都很顺利

对于 Windows,可以在 R 3.0 Windows Package Archive 中找到合适的 plyr 版本.

关于r - 无法通过命令行或手动安装 plyr 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30284690/

相关文章:

r - ddply错误: Error in attributes(out) <- attributes(col) : 'names' attribute must be the same length as the vector

r - 如何从数据框中按降序获取前n家公司

r - 根据特定因素组合对行求和

使用 R 中重复的个人条目重组团队数据

java - 如何使用Java提取文本文件中两个单词之间的内容?

reshape 数据框 --- 将行更改为列

r - 使用 R 将一列提取为行,保留其他列

Shiny 服务器上的 R Shiny - 如何访问该应用程序?

r - 将 stata 文件另存为 R 文件

r - 具有 ddply 的连续子群