无法通过命令行或手动安装plyr软件包

时间:2015-05-17 08:04:29

标签: 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
任何人都可以指导我这件事!

1 个答案:

答案 0 :(得分:7)

http://cran.r-project.org/src/contrib/Archive/plyr安装plyr 1.8.1版 感谢@nicola帮助我完成这一切,所有事情都像是一种魅力。

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