[R-pkg-devel] R package which creates a directory in the user home dir
Iñaki Ucar
|uc@r @end|ng |rom |edor@project@org
Thu Oct 17 14:49:51 CEST 2019
And if the user hits "yes", the package rappdirs may be useful to get
an appropriate place to save that data.
Iñaki
On Thu, 17 Oct 2019 at 14:45, Martin Maechler
<maechler using stat.math.ethz.ch> wrote:
>
> >>>>> 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
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Iñaki Úcar
More information about the R-package-devel
mailing list