首页 > 解决方案 > 无法在 R 版本 4.0.0 上安装软件包

问题描述

我刚刚更新了我的 R 版本,如此处所示现在我无法使用我的包。我试图删除并重新安装它们,但仍然出现错误。例如,尝试安装tidyverse给了我

install.packages("tidyverse")

Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib:
  internet routines cannot be loaded
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib:
  internet routines cannot be loaded
Warning in install.packages :
  package ‘tidyverse’ is not available (for R version 4.0.0)
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
  internet routines cannot be loaded

我发现了这个问题,但答案中的步骤没有帮助。某些步骤不适用于我的情况,尝试运行某些步骤会导致相同的错误。

标签: rpackageinstallationversion

解决方案


推荐阅读