【发布时间】:2021-05-23 10:00:32
【问题描述】:
我正在尝试安装 rnaturalearthhires 软件包,但我遇到了很多错误。
这是第一个错误:
Installing the rnaturalearthhires package.
Installing package into ‘C:/Users/kkost/OneDrive/Dokumenti/R/win-library/4.0’
(as ‘lib’ is unspecified)
值错误[3L]: 安装 rnaturalearthhires 包失败。 请尝试使用以下命令为自己安装软件包:
install.packages("rnaturalearthhires", repos = http://packages.ropensci.org", type = "source")
然后我尝试以下代码:
install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")
我明白了:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/kkost/OneDrive/Dokumenti/R/win-library/4.0’
(as ‘lib’ is unspecified)
**Error in install.packages : error reading from connection**
然后我试试这个代码:
devtools::install_github("ropensci/rnaturalearthhires")
但最终得到了这个:
loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) 中的错误: namespace ‘rlang’ 0.4.8 已经加载,但是 >= 0.4.10 是必需的
我也试试这个代码:
install_github("ropensci/rnaturalearthhires")
但我明白了:
install_github("ropensci/rnaturalearthhires") 中的错误: 找不到函数“install_github”
【问题讨论】:
标签: r