[R-pkg-devel] Proper way to ask a user to set permanent variables?
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Fri Jan 17 13:50:11 CET 2020
On 17 January 2020 at 09:49, Zhian Kamvar wrote:
| Options are not persistent between sessions unless the user wants them to
| be. You can have users set the options in their .Rprofile either in the
| working directory of the project or their home directory. This is the
Yes, precisely.
| method that the {usethis} package has for storing default names. The only
Sure, but the point of the approach is that it needs no other packages.
One may of course use a helper function or tool to edit / add / modify but
key is that every standard editor used to modify R code can modify .Rprofile.
| downside to this is that any R scripts associated will not be reproducible
| unless paired with the .Rprofile file.
Sure but it shares that problem with _every_ machine-local configuration method.
It really is a different problem, and again one you _could_ address in
initialization code by checking for options being present, their values etc pp
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-package-devel
mailing list