我已经在RStudio 1.2.1335版本中成功安装了tmap
包。
然而,当我尝试用library(tmap)
命令加载它时,我会收到以下错误消息:
Error: package or namespace load failed for ‘tmap’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/raster/libs/raster.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/raster/libs/raster.so, 6): Symbol not found: _EXTPTR_PTR
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/raster/libs/raster.so
Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/raster/libs/raster.so
我对所有软件包(新安装的或旧的(都有这个问题,不确定从哪里开始查找这个问题。
我通过重新安装R和RStudio 解决了这个问题
听起来您丢失了关于"光栅"的包。也许你去安装它。