我最近注意到 rgdal 和 sf 包不适用于我的新 Mac。我发现 this 帖子解释了这个问题。不过,它说已经解决了。
我尝试按照建议重新下载软件包,但仍然出现错误。我在安装时收到以下通知,并尝试了 Yes 和 No 但没有成功。
xidel --silent --color=never --xml --xquery "$(< process.xq)" my.xml
说 YES 时我得到的错误是;
install.packages(c("rgdal","sf"))
There is a binary version available but the source version is later:
binary source needs_compilation
rgdal 1.5-19 1.5-21 TRUE
当说“不”时,它安装正常,但是当我尝试调用 rgdal 时,我收到此错误
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rgdal’
我有 xcode,它是最新的。这是否仍然是 BigSur OS 的问题,还是因为我缺少某些东西。