[R] RGL Problem
Duncan Murdoch
murdoch.duncan at gmail.com
Mon Nov 23 11:49:00 CET 2015
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
More information about the R-help
mailing list