1

I am having problems with using rgl package after installing the rgal package. I am having a mac version 10.10.3 Yosemite installed and R studio of R version 3.2.0 (2015-04-16). Let me know how I can install this correctly. I tried removing the rgl.so file by deleting but still the problem persists. Any thoughts?

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

1 Answers1

1

I just had this exact error message. After trying to install multiple previous versions both direct from CRAN url and via the command line I finally had success by updating xquartz.

Thanks to rawr via Pascal!

Community
  • 1
  • 1
vincentmajor
  • 1,076
  • 12
  • 20