我在安装rgal包后遇到使用rgl包的问题。我正在安装10.10.3 Yosemite的Mac版本和R版本3.2.0(2015-04-16)的R studio。让我知道如何正确安装。我尝试通过删除删除rgl.so文件但仍然存在问题。有什么想法吗?
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’