我刚刚将R更新为3.4.0,将RStudio更新为1.0.143,然后重新安装了一些软件包。除了Rcpp(以及需要Rccp的软件包)之外,一切都还可以,我得到了这个:
> install.packages("Rcpp")
Warning in install.packages :
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found'
Warning in install.packages :
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'
There is a binary version available but the source version is later:
binary source needs_compilation
Rcpp 0.12.10 0.12.11 TRUE
Do you want to install from sources the package which needs compilation?
y/n: y
installing the source package ‘Rcpp’
trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_0.12.11.tar.gz'
Content type 'application/x-gzip' length 2485092 bytes (2.4 MB)
downloaded 2.4 MB
'\\CXXXX0001\Users\RXXXXn'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
'\\CXXXX0001\Users\RXXXXn\R\R-3.4.0' is not recognized as an internal or external command,
operable program or batch file.
Warning in install.packages :
running command '"//CXXXX0001/Users/RXXXn/R/R-3.4.0/bin/x64/R" CMD INSTALL -l "\\CXXXX0001\Users\RXXXXn\R\R-3.4.0\library" C:\Users\RXXX~1\AppData\Local\Temp\RtmpmOL8r0/downloaded_packages/Rcpp_0.12.11.tar.gz' had status 1
Warning in install.packages :
installation of package ‘Rcpp’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\RXXXXn\AppData\Local\Temp\RtmpmOL8r0\downloaded_packages’
我在执行此操作之前重新启动了R会话,因此不应该加载包的冲突。
我该怎么办?
user3293236评论后编辑
我也遇到devtools
包...
> install.packages("devtools")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/devtools_1.13.1.zip'
Content type 'application/zip' length 440923 bytes (430 KB)
downloaded 430 KB
package ‘devtools’ successfully unpacked and MD5 sums checked
Warning in install.packages :
unable to move temporary installation ‘\\CXXXX0001\Users\RXXXXn\R\R-3.4.0\library\file16401ac3a13\devtools’ to ‘\\CXXXX0001\Users\RXXXXn\R\R-3.4.0\library\devtools’
The downloaded binary packages are in
C:\Users\RXXXXn\AppData\Local\Temp\RtmpmOL8r0\downloaded_packages
> library(devtools)
Error in library(devtools) : aucun package nommé ‘devtools’ n'est trouvé
答案 0 :(得分:1)
我在尝试设置其他人的计算机时遇到了同样的问题。全新的R安装(R版本3.4.1),但R安装在OneDrive文件夹中。我还认为这是一个权限问题(如@nrussell评论的那样),因为错误是相同的... unable to move temporary installation ...
。
我没有像平常(或任何其他软件包)安装devtools
一样的问题,即使安装了Rtools Rcpp
也不会安装install.packages(“Rcpp”)`。有趣的是,
install.packages("Rcpp", type = 'source')
经过一些编译后工作了。奇怪...
答案 1 :(得分:0)
你能做什么?我将从阅读错误消息开始。
它清楚地向您显示提供了不同的源和二进制版本。对于前者,您需要工具。这是大量记录。
到明天CRAN还将为您提供新的二进制版本。但随着几小时前发布的新版本,您需要等待一下。或者使您的系统能够从源代码安装。
答案 2 :(得分:0)
我遇到了类似的问题,因此,我安装了以前的Rcpp版本并工作。
install_version("Rcpp", version = "1.0.3", repos = "http://cran.us.r-project.org")