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!
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
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