Skip to content
Prev 612 / 12125 Next

[R-pkg-devel] saving user preferences per workspace

The CRAN Policies [https://cran.r-project.org/web/packages/policies.html] say:

"- Packages should not write in the users? home filespace, 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). Installing into the
system?s R installation (e.g., scripts to its bin directory) is not
allowed.

Limited exceptions may be allowed in interactive sessions if the
package obtains confirmation from the user."

CRAN package R.cache saves to file after getting user's approval.
First time the package is loaded it asks the user for permission to
create "root" directory to store cached data.   If the directory
already exists, then it won't ask (again).  If it does not exist and
user disapproves to create it or R is running in an interactive, then
it falls back to using a temporary directory (which is still useful
for caching/memoization).

/Henrik
(author of R.cache)

On Sun, Dec 13, 2015 at 12:34 AM, Peter Meissner
<retep.meissner at gmail.com> wrote: