在安装警告。软件包:无法打开您的HTTP状态是“404 Not Found”

时间:2021-01-24 21:40:48

When running install.packages in the latest R (3.4) and RStudio 1.0.143 I get the following warning

当运行安装。在最新的R(3.4)和RStudio 1.0.143中,我得到以下警告

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'

This appears no matter what package(s) I select, however this does not appear to effect package installation. I tried clearing my ~/.rstudio-desktop, /Library/Frameworks/R.framework/Versions/3.4/Resources/library and reinstalling R and this warning still persists. Evening changing CRAN mirrors appears to have no effect as a similar warning appears. Below is my session information.

无论我选择什么包,都会出现这种情况,但是这似乎不会影响包的安装。我试着清空我的钱包。rstudio桌面、/Library/ framework/ R.framework/ version /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   

2 个解决方案

#1


5  

Just to let people know: this issue is coming from the R-Studio IDE. It will be fixed in the newest version. For more info: see this link.

让人们知道:这个问题来自于R-Studio IDE。它将在最新的版本中被修正。有关更多信息,请参见此链接。

EDIT:

编辑:

With the new version (1.0.153) this issue has been resolved!

新版本(1.0.153)解决了这个问题!

#2


3  

As @ManualS already acknowledged this is an issue with the RStudio 1.0.143. As long as there is no fix the following workaround works fine:

正如@ manual已经承认的,这是RStudio 1.0.143的一个问题。只要没有修复,下面的解决方法就可以了:

  1. Close RStudio and start base R
  2. 关闭RStudio,启动基地R
  3. Install package there, either by install.packages("packagename") or by menu "Packages/Install package(s)"
  4. 在那里安装包,或者通过安装包(“packagename”),或者通过菜单“Packages/Install package(s)”
  5. Close base R and start RStudio again
  6. 关闭基地R,再次启动RStudio

A full support session (for the OneR package) with more details can be found here: https://github.com/vonjd/OneR/issues/4

可以在这里找到完整的支持会话(针对OneR包),其中包含更多细节:https://github.com/vonjd/OneR/issues/4

#1


5  

Just to let people know: this issue is coming from the R-Studio IDE. It will be fixed in the newest version. For more info: see this link.

让人们知道:这个问题来自于R-Studio IDE。它将在最新的版本中被修正。有关更多信息,请参见此链接。

EDIT:

编辑:

With the new version (1.0.153) this issue has been resolved!

新版本(1.0.153)解决了这个问题!

#2


3  

As @ManualS already acknowledged this is an issue with the RStudio 1.0.143. As long as there is no fix the following workaround works fine:

正如@ manual已经承认的,这是RStudio 1.0.143的一个问题。只要没有修复,下面的解决方法就可以了:

  1. Close RStudio and start base R
  2. 关闭RStudio,启动基地R
  3. Install package there, either by install.packages("packagename") or by menu "Packages/Install package(s)"
  4. 在那里安装包,或者通过安装包(“packagename”),或者通过菜单“Packages/Install package(s)”
  5. Close base R and start RStudio again
  6. 关闭基地R,再次启动RStudio

A full support session (for the OneR package) with more details can be found here: https://github.com/vonjd/OneR/issues/4

可以在这里找到完整的支持会话(针对OneR包),其中包含更多细节:https://github.com/vonjd/OneR/issues/4