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

Dr Gregory Jefferis jefferis at mrc-lmb.cam.ac.uk
Thu Oct 8 22:41:12 CEST 2015


Dear Duncan,

Could I just revive this one more time

On 16 Aug 2015, at 17:21, Duncan Murdoch wrote:

> It is harder for you to implement this yourself, because CRAN frowns 
> on
> tests that try to detect whether they're running under CRAN or not.
>
> You could put in "if (interactive())" checks around your displays.  If
> you want to check whether the rgl calls are okay, you could do 
> something
> like this:
>
> library(rgl)
> options(rgl.useNULL = TRUE)

I have a package which imports rgl i.e. rgl is loaded on package 
startup. A number of examples (not tests) use rgl features and I do not 
want these to be run on CRAN.

Is there a way to configure rgl.useNULL to handle this situation?

Many thanks,

Greg.

--
Gregory Jefferis, PhD
Division of Neurobiology
MRC Laboratory of Molecular Biology
Francis Crick Avenue
Cambridge Biomedical Campus
Cambridge, CB2 OQH, UK

http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis
http://jefferislab.org
http://flybrain.stanford.edu



More information about the R-package-devel mailing list