我正在尝试安装rnaturalearthhires软件包,但我遇到了许多错误。
以下是第一个错误:
Installing the rnaturalearthhires package.
Installing package into ‘C:/Users/kkost/OneDrive/Dokumenti/R/win-library/4.0’
(as ‘lib’ is unspecified)value3L中的错误:未能安装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]):名称空间‘rlang’0.4.8已经加载,但需要>= 0.4.10
我还尝试了以下代码:
install_github("ropensci/rnaturalearthhires")但我明白了:
install_github中的错误(“ropensci/rNatal土方雇用”):找不到函数"install_github"
发布于 2021-02-21 00:08:37
我找到了这个,也许会有帮助:https://github.com/ropensci/rnaturalearthhires/issues/2
install.packages("devtools") # I guess you also need this
devtools::install_github("ropensci/rnaturalearthhires")
library("rnaturalearth")发布于 2021-09-30 17:49:13
devtools需要花费大量的时间来编译和安装一些用户。直接从github安装现在可以完成远程包。
remotes::install_github("ropensci/rnaturalearthhires")
https://stackoverflow.com/questions/66294044
复制相似问题