[R-pkg-devel] Writing to users config directory for CRAN package

David Hugh-Jones d@v|dhughjone@ @end|ng |rom gm@||@com
Sat Nov 5 20:32:29 CET 2022


Hi,

I'm considering submitting the package onetime (
https://github.com/hughjonesd/onetime/) to CRAN.

Onetime has functions for showing a message or warning only once (ever per
user). It does this by writing to a file in the user's configuration
directory, as reported by rappdirs::user_config_dir().

I know that CRAN has rules about not writing to the user's file system
without permission. What would be an appropriate way to do this? For
example, the function onetime_message_confirm() prints a message and then
asks "Show this again?[yN]" Would a "no" count as permission to write the
file?

Cheers,
David

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list