小编mar*_*gue的帖子

install.packages 中的警告:无法访问存储库的索引

安装 R 版本 4.2.0 后,我突然无法从 CRAN 安装软件包。这仅在我的具有强大防火墙的办公室站点上是正确的。

\n

警告消息粘贴如下:

\n
> Warning in install.packages: unable to access index for repository\n> http://cran.rstudio.com/src/contrib: cannot open URL\n> 'http://cran.rstudio.com/src/contrib/PACKAGES' Installing package into\n> \xe2\x80\x98C:/Users/l2863/AppData/Local/R/win-library/4.2\xe2\x80\x99 (as \xe2\x80\x98lib\xe2\x80\x99 is\n> unspecified) Warning in install.packages: unable to access index for\n> repository http://cran.rstudio.com/src/contrib: cannot open URL\n> 'http://cran.rstudio.com/src/contrib/PACKAGES'\n
Run Code Online (Sandbox Code Playgroud)\n

我查看了类似的问题,但没有找到任何有效的解决方案。

\n

r

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

r ×1