Hello, I have been experiencing an odd error with the RGL package that I cannot figure out. I have searched without luck for fixes to this problem on Rseek, Google, and the R-help-list. RGL used to work on my machine about a month ago. It was a very useful tool. The graphics device will not initialize now, and I cannot figure out why. When I try to load the package using ...> library(rgl)... I get a warning message: Warning messages: 1: In rgl.init(initValue) : RGL: no suitable visual available 2: In fun(...) : error in rgl_init I also notice I cannot open a new rgl device:> open3d()Error in rgl.open() : rgl.open failed I am on MacOS 10.6.5. X11 is installed and is working to my knowledge. Does anybody have any suggestions to figure this problem out? I tried reinstalling the RGL package (v0.92.794), I tried removing all but the base R packages, I tried installing from both source and binary, I tried re-installing R (v2.12.0). No luck with any of these ideas. I'm appending my session info and installed packages:> sessionInfo()R version 2.12.0 (2010-10-15) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base> rownames(installed.packages())[1] "base" "boot" "codetools" "datasets" "grDevices" "graphics" [7] "grid" "methods" "rgl" "splines" "stats" "stats4" [13] "tcltk" "tools" "utils" Thanks, -David Johnston -- View this message in context: r.789695.n4.nabble.com/Help-with-RGL-package-problem-tp3089560p3089560.html Sent from the R help mailing list archive at Nabble.com.
Hi David, I had similar errors are linux awhile back. I ended up needing to install/update some of rgl's non-R dependencies. I want to say it was OpenGL and GLU in particular, but I was doing a lot of install/updating at the time and I may be mixing one or both of those up. Also that was linux, not Mac, but anyway I would start by looking at: cran.r-project.org/web/packages/rgl/index.html and then checking/updating any of those system requirements. Cheers, Josh On Wed, Dec 15, 2010 at 10:11 AM, David A. Johnston <dajohnston at ucdavis.edu> wrote:> > Hello, > > I have been experiencing an odd error with the RGL package that I cannot > figure out. ?I have searched without luck for fixes to this problem on > Rseek, Google, and the R-help-list. > > RGL used to work on my machine about a month ago. ?It was a very useful > tool. ?The graphics device will not initialize now, and I cannot figure out > why. > > When I try to load the package using ... > >> library(rgl) > > ... I get a warning message: > > Warning messages: > 1: In rgl.init(initValue) : RGL: no suitable visual available > 2: In fun(...) : error in rgl_init > > I also notice I cannot open a new rgl device: > >> open3d() > Error in rgl.open() : rgl.open failed > > > I am on MacOS 10.6.5. ?X11 is installed and is working to my knowledge. > Does anybody have any suggestions to figure this problem out? ?I tried > reinstalling the RGL package (v0.92.794), I tried removing all but the base > R packages, I tried installing from both source and binary, I tried > re-installing R (v2.12.0). ?No luck with any of these ideas. > > > > I'm appending my session info and installed packages: > >> sessionInfo() > R version 2.12.0 (2010-10-15) > Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) > > locale: > [1] C > > attached base packages: > [1] stats ? ? graphics ?grDevices utils ? ? datasets ?methods ? base > >> rownames(installed.packages()) > ?[1] "base" ? ? ?"boot" ? ? ?"codetools" "datasets" ?"grDevices" "graphics" > ?[7] "grid" ? ? ?"methods" ? "rgl" ? ? ? "splines" ? "stats" ? ? "stats4" > [13] "tcltk" ? ? "tools" ? ? "utils" > > > > > Thanks, > -David Johnston > > -- > View this message in context: r.789695.n4.nabble.com/Help-with-RGL-package-problem-tp3089560p3089560.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles joshuawiley.com
On 15/12/2010 1:11 PM, David A. Johnston wrote:> > Hello, > > I have been experiencing an odd error with the RGL package that I cannot > figure out. I have searched without luck for fixes to this problem on > Rseek, Google, and the R-help-list. > > RGL used to work on my machine about a month ago. It was a very useful > tool. The graphics device will not initialize now, and I cannot figure out > why. > > When I try to load the package using ... > >> library(rgl) > > ... I get a warning message: > > Warning messages: > 1: In rgl.init(initValue) : RGL: no suitable visual available > 2: In fun(...) : error in rgl_init > > I also notice I cannot open a new rgl device: > >> open3d() > Error in rgl.open() : rgl.open failed > > > I am on MacOS 10.6.5. X11 is installed and is working to my knowledge.Are you running R (in a console) or R.app (the GUI)? Does rgl work in the other one? (They use different drivers. In a console, rgl will use the glx driver, in R.app it will use agl. It's possible support for agl has changed or gone away; I only have 32 bit MacOS 10.5.x, so I can't see what's going on in 10.6.5 or in 64 bit.) Duncan Murdoch> Does anybody have any suggestions to figure this problem out? I tried > reinstalling the RGL package (v0.92.794), I tried removing all but the base > R packages, I tried installing from both source and binary, I tried > re-installing R (v2.12.0). No luck with any of these ideas.> > > > I'm appending my session info and installed packages: > >> sessionInfo() > R version 2.12.0 (2010-10-15) > Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) > > locale: > [1] C > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > >> rownames(installed.packages()) > [1] "base" "boot" "codetools" "datasets" "grDevices" "graphics" > [7] "grid" "methods" "rgl" "splines" "stats" "stats4" > [13] "tcltk" "tools" "utils" > > > > > Thanks, > -David Johnston >
Thank you Joshua and Duncan for your very quick responses. Joshua, I will indeed read more about the OpenGL and GLU systems. Duncan, I am running R via a console. I also tried via the GUI R.app and the same problems with loading the package and opening a graphics device occurred. I find it curious that my laptop (also running MacOS 10.6.5) does not have this problem. -David Johnston -- View this message in context: r.789695.n4.nabble.com/Help-with-RGL-package-problem-tp3089560p3089641.html Sent from the R help mailing list archive at Nabble.com.