问题
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