在最新的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
答案 0 :(得分:5)
答案 1 :(得分:4)
由于@ManualS已经承认这是RStudio 1.0.143的问题。只要没有修复,以下解决方法就可以正常工作:
install.packages("packagename")
或菜单"包/安装包" 可以在此处找到包含更多详细信息的完整支持会话(适用于OneR包):https://github.com/vonjd/OneR/issues/4