问题描述
我在这里看到了以下问题:加载rgl时出错Mac OS X 包,但没有提及安装错误,这是我的情况.我无法在R
中使用此命令安装rgl
软件包:
I have seen this question here: Error in loading rgl package with Mac OS X but there is no mentioning about installation error, which is my case. I cannot install rgl
package, using this command in R
:
source("http://bioconductor.org/biocLite.R")
biocLite("rgl")
显示以下错误:
我检查了该地址/Library/Frameworks/R.framework/Versions/3.2/Resources/library
,并且没有rgl
文件夹,因此我无法删除aglrgl.so
(或rgl.so
),这是上述问题的答案.您能帮我解决这个安装问题吗?谢谢.
I checked this address /Library/Frameworks/R.framework/Versions/3.2/Resources/library
and there is no rgl
folder, so I cannot delete aglrgl.so
(or rgl.so
), which is the answer to the above-mentioned question. Can you please help me with this installation problem? Thanks.
推荐答案
所有提到的答案都是正确的;但是,不适用于Mac.
All the mentioned answers are correct; however, none is for Mac.
以我为例(我是Mac用户),我通过安装 XQuartz 并重新启动R解决了该问题.
In my case (I am a Mac user), I solved the problem by installing XQuartz and restarting R.
这篇关于在Ubuntu和Mac上安装rgl:找不到X11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!