Installing “rgl” package in R, Mac OSX El Captian

柔情痞子 提交于 2019-11-29 06:49:21

After talking with a colleague all I had to do was download XQuartz from here to install X11, and then install the source package again. Now it works!

hannibelle

Downloading XQuartz completely solved everything after I wasted hours trying to come up with a solution to this problem.

I first downloaded the package onto my desktop, but R gave me the same error, this is what worked for my Mac:

install.packages("rgl", lib="Desktop/rgl_0.96.0 (1).tgz") Warning in install.packages : 'lib = "Desktop/rgl_0.96.0 (1).tgz"' is not writable Would you like to use a personal library instead? (y/n) y Would you like to create a personal library ~/Library/R/3.3/library to install packages into? (y/n) y

In my case, not only install XQuartz but I need to also open XQuartz.app manually and then run install.packages("rgl").

Only by this way would R found X11 in my case...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!