1
votes

I am having problems loading rugarch package on R and I really need that package for my thesis.

I have no problem installing it. But when I try to load it I receive the following error message:

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.3/Resources/library/rgl/libs/rgl.so': dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/rgl/libs/rgl.so Reason: image not found Error: package or namespace load failed for ‘rugarch’

Any suggestions ?

Any help would be appreciated.

1
Have you installed the package rgl? cran.r-project.org/web/packages/rgl/index.html The error indicates that this package is needed.J_F
@J_F I installed the package rgl and know I have this problem: Loading required package: parallel 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.3/Resources/library/rgl/libs/rgl.so' But there is a lot of packages with the name parallelJoão Manuel Teodoro
library(rgl) 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.3/Resources/library/rgl/libs/rgl.so': > And this also happens to rgl package @J_F. So strange I cannot load these packagesJoão Manuel Teodoro
Have you installed a c++ compiler for OSX? developer.apple.com/xcode/downloadsJ_F

1 Answers

0
votes

This answer is a bit late but for other people searching for a solution. The solution that worked for me is to download and install XQuartz https://www.xquartz.org onto your Mac.

See Stackoverflow answers here and here