Re: [R-pkg-devel] Package write access for storing new files

2019-12-06 Thread Dr Gregory Jefferis
Possibly you can use the rappdirs location *if it exists* and tempdir() otherwise. You could make the rappdirs location when running the shiny app. Since the user has to do something to run the app, this is probably ok. I think the problem is that loading the package itself cannot result in a d

Re: [R-pkg-devel] [Rd] Making a package CITATION file from BibTeX

2019-05-29 Thread Dr Gregory Jefferis
list. All the best, Greg. On 29 May 2019, at 23:46, Achim Zeileis wrote: On Thu, 30 May 2019, Dr Gregory Jefferis wrote: Dear Colleagues, I would like to provide a CITATION file for my package nat.nblast [1]. I have the correct citation in BibTeX format [2]. How can I convert this BibT

Re: [R-pkg-devel] Starter Help

2019-02-18 Thread Dr Gregory Jefferis
On 18 Feb 2019, at 8:13, Stefan McKinnon Høj-Edwards wrote: * is it possible to import a set of *.Rd man documentation files into my R session? This may be what you want: https://cran.r-project.org/web/packages/Rd2roxygen/index.html Although my experience a while back was that some manual

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

2015-12-31 Thread Dr Gregory Jefferis
Dear Duncan, On 31 Dec 2015, at 0:28, Duncan Murdoch wrote: On 30/12/2015 4:42 PM, Dr Gregory Jefferis wrote: On 30 Dec 2015, at 21:11, Duncan Murdoch wrote: I wasn't being clear there. I want to have rgl example code (e.g. plot3d statements) in my documentation * that's not e

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

2015-12-30 Thread Dr Gregory Jefferis
On 30 Dec 2015, at 21:11, Duncan Murdoch wrote: Is there a workaround to get snapshots out of a RGL null display? No. OK. Thanks for confirming. Theoretically it's possible to use a virtual frame buffer in X11 to hold the image, but I've got no experience with that myself. I have used x

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

2015-12-30 Thread Dr Gregory Jefferis
Dear Duncan, On 8 Oct 2015, at 22:10, Duncan Murdoch wrote: On 08/10/2015 4:41 PM, Dr Gregory Jefferis wrote: [snip] 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

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

2015-10-08 Thread Dr Gregory Jefferis
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

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

2015-08-16 Thread Dr Gregory Jefferis
On 12 Aug 2015, at 23:30, Søren Havelund Welling wrote: I placed in top of all test scripts: if(!interactive()) Sys.setenv(RGL_USE_NULL=TRUE) #disable RGL for headless machines System environment variables are inherited, so I think you should be able to do this once in your master test scrip

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

2015-08-16 Thread Dr Gregory Jefferis
Dear Duncan, On 12 Aug 2015, at 14:07, Duncan Murdoch wrote: 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 u