【发布时间】:2017-09-27 06:10:24
【问题描述】:
在最新的 R (3.4) 和 RStudio 1.0.143 中运行 install.packages 时,我收到以下警告
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'
无论我选择什么包,这都会出现,但这似乎不会影响包安装。我尝试清除我的~/.rstudio-desktop、/Library/Frameworks/R.framework/Versions/3.4/Resources/library 并重新安装 R,但此警告仍然存在。晚上更换 CRAN 后视镜似乎没有效果,因为出现了类似的警告。以下是我的会话信息。
R version 3.4.0 (2017-04-21)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.4
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] datasets stats graphics grDevices utils methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0
【问题讨论】:
-
我认为它是 CRAN 镜像的产物,仍然将其数据保存在具有旧 R 版本号的目录中。据我所知,它不会造成任何问题。
-
我也有这个问题,不管我尝试安装或更新哪个包。与 OP 一样,据我所知,一切仍将正确安装。