[R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

Søren Havelund Welling sowe at dtu.dk
Thu Aug 13 00:30:19 CEST 2015

I placed in top of all test scripts:
if(!interactive()) Sys.setenv(RGL_USE_NULL=TRUE) #disable RGL for headless machines

on 3)
I guess I could build and test the github version of package on travis.ci in a OSX environment

Many thanks for the help
PS "What happens when you squeeze grapes? -they wine a lot"

From: Dirk Eddelbuettel [edd at debian.org]
Sent: Wednesday, August 12, 2015 5:48 PM
To: Duncan Murdoch
Cc: Dirk Eddelbuettel; Søren Havelund Welling; r-package-devel at r-project.org
Subject: Re: [R-pkg-devel] how to make "r-release-osx-x86_64-mavericks" machine support rgl 3D plots

On 12 August 2015 at 09:07, Duncan Murdoch wrote:
| On 12/08/2015 8:26 AM, Dirk Eddelbuettel wrote:
| > I frequently tests against all reverse dependencies against some of my
| > packages, ie Rcpp, RcppArmadillo, ... and packages using rgl generally fail
| > during these tests.


| A while ago I added support in rgl to run on headless machines.  Set the
| environment variable RGL_USE_NULL=TRUE before loading rgl, and should
| never try to call X11 (or whatever graphics system you're using).
| (It's also possible to use options(rgl.useNULL = TRUE) within R.  That's
| no help to you, but is useful when embedding rgl plots in knitr documents.)

Next time someone complains that "whining doesn't help", I'll send them to
this thread.   Setting

   Sys.setenv("RGL_USE_NULL"="TRUE")       # Duncan Murdoch on r-package-devel on 12 Aug 2015

works wonderfully.  I should have whined earlier ...

Thanks, Duncan!


http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the R-package-devel mailing list