所以几天来我一直在用头撞墙,试图理解为什么我的机器无法加载 choroplethrZip。我已经尝试了推荐的安装路径(使用 devtools 和 github),但我不断收到以下错误消息:
#install.packages("devtools")
library(devtools)
install_github('arilamstein/choroplethrZip@v1.5.0')
Downloading GitHub repo arilamstein/choroplethrZip@v1.5.0
from URL https://api.github.com/repos/arilamstein/choroplethrZip/zipball/v1.5.0
Installing choroplethrZip
"C:/PROGRA~1/R/R-35~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"C:/Users/dbrennan/AppData/Local/Temp/Rtmp0q4jjY/devtools29fc168c68f5/arilamstein-choroplethrZip-3cbc9f3" \
--library="C:/Users/dbrennan/Documents/R/win-library/3.5" --install-tests
* installing *source* package 'choroplethrZip' ...
** R
** data
** inst
** tests
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'choroplethr' 2.2.0 is being loaded, but >= 3.3.0 is required
ERROR: lazy loading failed for package 'choroplethrZip'
* removing 'C:/Users/dbrennan/Documents/R/win-library/3.5/choroplethrZip'
In R CMD INSTALL
Installation failed: Command failed (1)
我尝试重新启动 r 并立即运行代码,以及重新启动计算机本身。我也尝试将包 zip 文件直接读取到 R 中,但这也没有奏效。任何帮助将不胜感激。