R rgl Package crashes Rstudio

ぃ、小莉子 提交于 2019-12-02 03:17:09

问题


Does anyone use R rgl package (version 0.95.1201) in Rstudio (Version 0.99.489)? Every time I call library(rgl), Rstudio crashes.

Update

I updated rgl by installing version 0.95.1367 from source. Rstudio still crashes. But when I run it in R GUI or R in terminal, there is no problem. Recently I updated my XQuartz to 2.7.9_beta1. I am not sure if this could be the reason.

My system is: Mac OSX Yosemite 10.10.5


回答1:


I had the exact same problem.

You have to set the environment variable:

LIBGL_ALWAYS_SOFTWARE=1

In R, the command is:

Sys.setenv(LIBGL_ALWAYS_SOFTWARE=1)

It should work now.



来源:https://stackoverflow.com/questions/34027425/r-rgl-package-crashes-rstudio

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