[R-pkg-devel] R package which creates a directory in the user home dir

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu Oct 17 16:31:20 CEST 2019


Sigbert,

One approach you could consider is to _package_ the data in a (standard R)
package upon which you can have a Suggests: relationship using a
Additional_repositories: entry in DESCRIPTION.  That is fully compliant and
compatible with the CRAN Policy, and has been done before -- in fact there is
a detailed writeup for just this case ("additional data packages") here in
the 9:1 issue of the R Journal.

   https://journal.r-project.org/archive/2017/RJ-2017-026/index.html

The paper details how to use the drat package to manage that repository but
it is worth stressing that drat is entirely optional -- everything can be
done the same way with base R functions. 

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list