R发布目录以安装包

时间:2016-10-11 08:27:11

标签: r installation dplyr packages plyr

我使用多个软件包的脚本工作正常,直到上周五。我做了更新或所有包(我使用RStudio),现在我可以打开一些包。

有关plyrdplyr的示例。

我有设置:

.libPaths()
[1] "C:/Users/florent/Documents/R/win-library/3.3" "C:/Program Files/R/R-3.3.1/library"     

 When I do 
install.packages("plyr")
library("plyr")

我明白了:

Installing package into ‘C:/Users/florent/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘Rcpp’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/Rcpp_0.12.7.zip'
Content type 'application/zip' length 3265128 bytes (3.1 MB)
downloaded 3.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/plyr_1.8.4.zip'
Content type 'application/zip' length 1183174 bytes (1.1 MB)
downloaded 1.1 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘Rcpp’
package ‘plyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘plyr’

The downloaded binary packages are in
    C:\Users\florent\AppData\Local\Temp\3\RtmpiWaBed\downloaded_packages
> library("plyr")
Error in library("plyr") : there is no package called ‘plyr’

然后我给出了安装软件包的目录,我尝试再次打开它:

 install.packages("plyr", lib="C:/Users/florent/Documents/R/win-library/3.3")
library("plyr", lib.loc="C:/Users/florent/Documents/R/win-library/3.3")

我有:

> install.packages("plyr", lib="C:/Users/florent/Documents/R/win-library/3.3")
also installing the dependency ‘Rcpp’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/Rcpp_0.12.7.zip'
Content type 'application/zip' length 3265128 bytes (3.1 MB)
downloaded 3.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/plyr_1.8.4.zip'
Content type 'application/zip' length 1183174 bytes (1.1 MB)
downloaded 1.1 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘Rcpp’
package ‘plyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘plyr’

The downloaded binary packages are in
    C:\Users\florent\AppData\Local\Temp\3\RtmpiWaBed\downloaded_packages
> library("plyr", lib.loc="C:/Users/florent/Documents/R/win-library/3.3")
Error in library("plyr", lib.loc = "C:/Users/florent/Documents/R/win-library/3.3") : 
  there is no package called ‘plyr’
> 

这很奇怪。我失去了为什么我不能得到这两个包,但我可以得到所有其他包!

欢迎提出建议!

0 个答案:

没有答案