[R-pkg-devel] R package which creates a directory in the user home dir
Martin Maechler
m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Thu Oct 17 14:44:26 CEST 2019
>>>>> Sigbert Klinke
>>>>> on Thu, 17 Oct 2019 14:29:54 +0200 writes:
> Hi,
> I'am developing a package that circumvents the R package size limitation
> for data sets. For this I store the data set in the internet (currently
> GitHub) and download if it is requested.
> To avoid unnecessary downloads and internet connections I create a
> directory in the users home directory to store the data there. However,
> this violates the "CRAN Repository Policy" which says
> - Packages should not write in the user’s home filespace (including
> clipboards), nor anywhere else on the file system apart from the R
> session’s temporary directory (or during installation in the location
> pointed to by TMPDIR: and such usage should be cleaned up).
> Do I have any chance to get the package to CRAN, if I submit it?
> Best Sigbert
> https://hu.berlin/sk
> https://hu.berlin/mmstat3
I you *prompt* the user about writing, i.e., ask them explicitly
if <directory> is fine and only if "yes", you write there,
otherwise try to write to tempdir() then your package is fine,
otherwise it is not, i.e,
"not okay" according to many, even if *not* on CRAN..
Best,
Martin
More information about the R-package-devel
mailing list