我在这里看到了这个问题:使用Mac OS X加载rgl包时出错,但没有提到安装错误,这是我的情况.我无法rgl使用以下命令安装软件包R:
source("http://bioconductor.org/biocLite.R")
biocLite("rgl")
Run Code Online (Sandbox Code Playgroud)
显示以下错误:
source("http://bioconductor.org/biocLite.R")
biocLite("rgl")
Run Code Online (Sandbox Code Playgroud)
我检查了这个地址/Library/Frameworks/R.framework/Versions/3.2/Resources/library,没有rgl文件夹,所以我不能删除aglrgl.so(或rgl.so),这是上述问题的答案.你能帮我解决这个安装问题吗?谢谢.
我正在尝试在Mac OS X(Lion 10.7.3)下为R(2.14.2)安装rgl软件包(0.92.858).当我尝试加载它(库(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/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so':
dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so, 6): Symbol not found: __ZN3gui13OSXGUIFactory12hasEventLoopEv
Referenced from: /Library/Frameworks/R.framework/Versions/2.14/Resources/library/rgl/libs/x86_64/aglrgl.so
Expected in: dynamic lookup
Run Code Online (Sandbox Code Playgroud)
我有一台带有挪威键盘的Mac.也许这与这个问题有关?但是,我得到了同样的错误,即使我将语言改为美国有没有人遇到过类似的问题?有什么办法解决它吗?
我是R的新编程所以如果我看起来天真,我会事先道歉.我希望能够对我的3D数据进行一些主成分分析.我读到"pca3d"函数对此有好处,但我需要下载"rgl"库.当我使用install.packages时,它会询问:
install.packages("rgl")
There is a binary version available but the source version is later:
binary source needs_compilation
rgl 0.95.1201 0.95.1367 TRUE
Do you want to install from sources the package which needs compilation?
y/n: n
Run Code Online (Sandbox Code Playgroud)
我已经尝试将它安装为二进制和源代码,但似乎没有任何效果.如果我尝试加载二进制版本,我会收到此错误:
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’
Run Code Online (Sandbox Code Playgroud)
如果我说从源代码安装"是",我收到以下错误: …