Dear List, Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im trying to open the package geomorph but a warning message related to rgl shows up.> library(geomorph)Loading required package: rgl Warning messages: 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display 2: In fun(libname, pkgname) : error in rgl_init I have already installed X11 but this message keeps showing up. Does somebody knows what to do? -- *Margarette Bayr?n Arcelay* *Master Student & Teaching Assistant in the Department of Biology * *University of Puerto Rico at Mayaguez * *BS Industrial Microbiology & **BS General Biology* *Office: B-154;01A | Lab: B-282B: Ecolab* *Linkedin <http://pr.linkedin.com/in/margarettebayron> | * *margarette.bayron at upr.edu* <margarette.bayron at upr.edu> *Office Hours (B-282B): * *Tue- 11:00-11:50am & 2:00-4:30pm* *Thurs- 10:30-11:30am* *"Chance favors a prepared mind"* [[alternative HTML version deleted]]
On 22/11/2015 11:56 PM, Margarette Bayron Arcelay via R-help wrote:> Dear List, > > Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im > trying to > open the package geomorph but a warning message related to rgl shows up. > >> library(geomorph) > Loading required package: rgl > Warning messages: > 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display > 2: In fun(libname, pkgname) : error in rgl_init > > I have already installed X11 but this message keeps showing up. > > Does somebody knows what to do? >It may be that you need to re-install XQuartz. If that doesn't work, you can suppress its use. If you run this before the library call: options(rgl.useNULL = TRUE) then rgl won't try to open your X11 display, and the error shouldn't happen. (You won't be able to see output in X11 either.) Duncan Murdoch
On 22/11/2015 11:56 PM, Margarette Bayron Arcelay via R-help wrote:> Dear List, > > Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im > trying to > open the package geomorph but a warning message related to rgl shows up. >Whoops, I forgot one thing. The OSX binary version of rgl on CRAN is ancient. You'll need to reinstall it from source for a current one. Duncan Murdoch>> library(geomorph) > Loading required package: rgl > Warning messages: > 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display > 2: In fun(libname, pkgname) : error in rgl_init > > I have already installed X11 but this message keeps showing up. > > Does somebody knows what to do? >
> On 23 Nov 2015, at 11:50, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > > The OSX binary version of rgl on CRAN is ancient. You'll need to reinstall it from source for a current one.Since you bring up this point: any chance of getting Mac binaries from CRAN again? Rgl is a particularly nice tool because of its portability, and requiring users to install Xcode and Xquartz first makes life a lot harder for non-technical users. This is compounded by the fact that the automatic configuration is easily broken. I have been unable to install rgl from source for some time on Mavericks, and have now discovered that this was due to a HomeBrew-installed imake in /usr/local. Perhaps it would make sense always to use the well-known standard XQuartz paths on Mac and only consider other locations if explicitly asked for by the user? Best, Stefan
On 22/11/2015 11:56 PM, Margarette Bayron Arcelay via R-help wrote:> Dear List, > > Im using Rstudio on a macbook pro OS X Yosemite version 10.10.5 and im > trying to > open the package geomorph but a warning message related to rgl shows up. > >> library(geomorph) > Loading required package: rgl > Warning messages: > 1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display > 2: In fun(libname, pkgname) : error in rgl_init > > I have already installed X11 but this message keeps showing up. > > Does somebody knows what to do? >I think other messages in this thread may have helped you to get X11 going. If not, and the latest version doesn't work for you, please ask again. If you get the very latest version 0.95.1415 of rgl from R-forge, it will continue on after this, using the "NULL" device. This can't display from within R, but can still output WebGL code for display on a web page, so it may be useful for some systems. (It can sort of display in RStudio; you need to load the rglwidget package, and call rglwidget() each time you want to see output. This behaviour is still in flux.) Duncan Murdoch