Skip to content
Prev 624 / 12125 Next

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

Dear Duncan,
On 31 Dec 2015, at 0:28, Duncan Murdoch wrote:

            
My packages are used by a small community of neuroscientists with 
varying degrees of expertise in running /installing / compiling code. 
Not infrequently using these packages is the first time they use R. Most 
use macs. The mac binary version of the main nat package was out of date 
for about 6 months because it could not be built on the CRAN mac because 
of some kind of rgl problem on that machine (you probably know what that 
was - I presume it was difficult to fix!). This forces my users to use 
devtools for installation and also means that the install instructions 
for downstream packages depending on nat are insufficient because they 
assume that nat can be fetched from CRAN.

By running rgl with the null device on CRAN I still exercise the 
relevant code but insulate myself from this kind of issue.
[snip]
You're right that's something to be careful about. I guess I want to use 
the null device during check, not just on CRAN ? it's annoying to have 
X11 windows cropping up when coding. I'd argue, that this is actually 
less restrictive than skipping tests on CRAN ? which as far as I know 
is perfectly acceptable. The problem is that there are no simple 
mechanisms to skip example code (rather than tests) ? hence the 
approach of putting code to test/set rgl.useNULL status in .onLoad that 
you originally suggested.

Thanks again for advice/feedback.

Best wishes	,

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