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’