我正在尝试在 Windows 计算机上的 Rstudio 中安装一些软件包,但遇到了一些问题。 当我输入时:
install.packages("dplyr")
我收到以下错误:
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 ‘dplyr’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
internet routines cannot be loaded
Warning: unable to access index for repository https://cran.rstudio.com/src/contrib:
internet routines cannot be loaded
我还尝试通过以下方式安装软件包:
> install.packages("C:/Users/NLFERM/Downloads/dplyr_1.0.4.tar.gz", repos = NULL, type = "source")
但在这里我也得到一个错误:
ERROR: dependencies 'ellipsis', 'generics', 'glue', 'lifecycle', 'magrittr', 'R6', 'rlang', 'tibble', 'tidyselect', 'vctrs' are not available for package 'dplyr'
* removing 'C:/Users/NLFERM/Documents/R/R-4.0.4/library/dplyr'
Warning in install.packages :
installation of package ‘C:/Users/NLFERM/Downloads/dplyr_1.0.4.tar.gz’ had non-zero exit status
我已经重新安装了 R studio 并确保我的计算机上安装了最新版本的 R。有谁知道如何解决这个问题?
亲切的问候
答案 0 :(得分:0)
这是否适用于您的 R 基础?
否则你是否连接到互联网?还是通过企业网络无法访问 cran 网站?