I have a Mac with MacOS Big Sur 11.2.3. I try to use the tidycensus library:
library(tidycensus)
But I get the following error:
Error: package or namespace load failed for ‘tidycensus’ 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
What should I do?
Related
I get this error when starting the export package in R. It seems to download successfully, but when library(export) is run, I get this message:
Error: package or namespace load failed for ‘export’ in dyn.load(file,
DLLpath = DLLpath, ...): unable to load shared object
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so,
6): Library not loaded: /opt/X11/lib/libcairo.2.dylib Referenced
from:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so
Reason: image not found
Thanks for your help!
I have installed XLConnect package though my R studio. When I try to load the library I get the following error
> library(XLConnect)
Loading required package: XLConnectJars
Error: package or namespace load failed for ‘XLConnectJars’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so, 6): Library not loaded: #rpath/libjvm.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/rJava.so
Reason: image not found
Error: package ‘XLConnectJars’ could not be loaded
I checked the /Library/Frameworks/R.framework/Versions/3.4/Resources/library folder and I am noticed all three mentioned libraries(XLConnect, XLConnectJars, rJava) already present.
I'm trying to load a package I have installed via Bioconductor (using BiocLite()) as I have done with many other similar packages from the same source. However I get this error:
[Error: package or namespace load failed for 'GenomicFeatures' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/mario/Library/R/3.4/library/rtracklayer/libs/rtracklayer.so':
dlopen(/Users/mario/Library/R/3.4/library/rtracklayer/libs/rtracklayer.so, 6): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/mario/Library/R/3.4/library/rtracklayer/libs/rtracklayer.so
Reason: image not found]
If I try to install and load library rtracklayer I get the same message
I've tried reading to answers for similar questions on the site but I still can't figure out what the problem is.
Any suggestions?
I use Rblpapi package on a PC at work. I've tried to install it on my Mac at home, however, I get the below error. I'm not sure what the problem is... all other packages work. Any suggestions?
library(Rblpapi)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Users/wg/Library/R/3.3/library/Rblpapi/libs/Rblpapi.so':
dlopen(/Users/wg/Library/R/3.3/library/Rblpapi/libs/Rblpapi.so, 6): Library not loaded: #rpath/libblpapi3_64.so
Referenced from: /Users/wg/Library/R/3.3/library/Rblpapi/libs/Rblpapi.so
Reason: image not found
Error: package or namespace load failed for ‘Rblpapi’
I have an error when try to open rgl library:
Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgl/libs/rgl.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.1/Resources/library/rgl/libs/rgl.so
Reason: image not found
Any solutions?
You need to have XQuartz installed on OSX for rgl to work.