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] Package write access for storing new files

2019-12-06 Thread Rainer M Krug
Thanks for the tip with rappdirs. I am just not sure, how I should handle the questions, as it should also run in a shiny application? > On 6 Dec 2019, at 10:12, Gregory Jefferis wrote: > > I use rappdirs to construct a platform appropriate consistent package > download directory. But for C

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

2019-12-06 Thread Gregory Jefferis
I use rappdirs to construct a platform appropriate consistent package download directory. But for CRAN I believe you will need to obtain some kind of user confirmation at least once to allow this behaviour. Best, Greg. Sent from my iPhone > On 6 Dec 2019, at 08:43, Rainer M Krug wrote: > > H

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

2019-12-06 Thread Rainer M Krug
Hi I am writing a package which downloads files which become part of the package (only useful for functions in the package and independent of the working directory) into system.file("installedSchemes", package = "dmdScheme") (See https://github.com/Exp-Micro-Ecol-Hub/dmdScheme/blob/b9