安装 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'\nRun Code Online (Sandbox Code Playgroud)\n我查看了类似的问题,但没有找到任何有效的解决方案。
\nr ×1