rgdal library not loading

Hi all, I'm having trouble loading the rgdal library. I have updated R and RStudio. I'm on a MacBook and recently updated to OS 11.0.1. Below are the error messages. Any help greatly appreciated. Thank you!

install.packages("rgdal")

trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.0/rgdal_1.5-18.tgz'
Content type 'application/x-gzip' length 83963272 bytes (80.1 MB)

==================================================
downloaded 80.1 MB

The downloaded binary packages are in
/var/folders/db/shbxhb9d6_b8dqdb4029tmfr0000gn/T//RtmpRbJcDZ/downloaded_packages

library(rgdal)
Error: package or namespace load failed for ‘rgdal’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rgdal/libs/rgdal.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rgdal/libs/rgdal.so, 6): Library not loaded: /usr/lib/libpq.5.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/rgdal/libs/rgdal.so
Reason: image not found

rgdal library for R relies on your system having GDAL utility, so you'll have to research how to install GDAL for macos, before attempting to install the R package that depends on it.

Same issue here. Unable to load rgdal or sf after "upgrade" to Big Sur. I reinstalled GDAL, but that didn't work. Any tips greatly appreciated!!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.