簡體   English   中英

嘗試在 Rstudio 中安裝軟件包時出錯

[英]error when trying to install packages within Rstudio

我正在嘗試在我的 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。 有誰知道如何解決這個問題?

親切的問候

這適用於您的 R 底座嗎?

否則你連接到互聯網了嗎? 或者通過無法訪問 cran 網站的企業網絡?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM