我正在尝试安装该rnaturalearthhires软件包,但遇到很多错误。
这是第一个错误:
\nInstalling the rnaturalearthhires package.\nInstalling package into \xe2\x80\x98C:/Users/kkost/OneDrive/Dokumenti/R/win-library/4.0\xe2\x80\x99\n(as \xe2\x80\x98lib\xe2\x80\x99 is unspecified)\nRun Code Online (Sandbox Code Playgroud)\n\n\n值 [3L] 中存在错误:\n无法安装 rnaturalearthhires 软件包。\n请尝试使用以下命令自行安装该软件包:\n
\ninstall.packages("rnaturalearthhires", repos = http://packages.ropensci.org", type = "source")
然后我尝试以下代码:
\ninstall.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")\nRun Code Online (Sandbox Code Playgroud)\n我明白了:
\nWARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:\nhttps://cran.rstudio.com/bin/windows/Rtools/\nInstalling package into \xe2\x80\x98C:/Users/kkost/OneDrive/Dokumenti/R/win-library/4.0\xe2\x80\x99\n(as \xe2\x80\x98lib\xe2\x80\x99 is unspecified)\n**Error in install.packages : error reading from connection**\nRun Code Online (Sandbox Code Playgroud)\n然后我尝试这段代码:
\ndevtools::install_github("ropensci/rnaturalearthhires")\nRun Code Online (Sandbox Code Playgroud)\n但最终得到这个:
\n\n\nloadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) 中出现错误:\nnamespace \xe2\x80\x98rlang\xe2\x80\x99 0.4.8 已加载,但是需要 >= 0.4.10
\n
我也尝试这个代码:
\ninstall_github("ropensci/rnaturalearthhires")\nRun Code Online (Sandbox Code Playgroud)\n但我明白了:
\n\n\ninstall_github("ropensci/rnaturalearthhires") 中的错误:\n找不到函数“install_github”
\n
小智 8
我发现这个问题,它可能会有所帮助: https ://github.com/ropensci/rnaturalearthhires/issues/2
install.packages("devtools") # I guess you also need this
devtools::install_github("ropensci/rnaturalearthhires")
library("rnaturalearth")
Run Code Online (Sandbox Code Playgroud)
对于某些用户来说,devtools 可能需要很长时间来编译和安装。现在可以使用远程包直接从 github 进行安装。
remotes::install_github("ropensci/rnaturalearthhires")
| 归档时间: |
|
| 查看次数: |
6173 次 |
| 最近记录: |