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

sur*_*raj 3 r plyr

在打字

install.packages("ggplot2")
Run Code Online (Sandbox Code Playgroud)

我得到以下结果:

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
Run Code Online (Sandbox Code Playgroud)

当我试图通过首先下载plyr包和使用来安装'plyr'包

install.packages("plyr_1.8.2.tar.gz",repos=NULL,type="source")
Run Code Online (Sandbox Code Playgroud)

我收到以下消息:

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
Run Code Online (Sandbox Code Playgroud)

任何人都可以指导我这件事!

sur*_*raj 7

http://cran.r-project.org/src/contrib/Archive/plyr安装plyr的1.8.1版本 ,所有内容都像@nicola一样有助于我帮助我

对于Windows,可以在R 3.0 Windows软件包存档中找到相应版本的plyr .