[Bioc-devel] BiocFileCache for developers
Michael Love
michaelisaiahlove at gmail.com
Sat Dec 9 23:18:08 CET 2017
thanks Henrik,
I like the explicitness of the `R.cache` approach and I copied it for
my current implementation.
For the BiocFileCache location that should be used for this package
I'm developing, `tximeta`, I'm now using the following logic:
* If run non-interactively, `tximeta` uses a temporary directory.
* If run interactively, and a location has not been previously saved,
the user is prompted if she wants to use (1) the default directory or
a (2) temporary directory.
- If (1), then use the default directory, and save this choice.
- If (2), then use a temporary directory for the rest of this R
session, and ask again next R session.
* The prompt above also mentions that a specific function can be used
to manually set the directory at any time point, and this choice is
saved.
* The default directory is given by `rappdirs::user_cache_dir("BiocFileCache")`.
* The choice itself of the BiocFileCache directory that `tximeta`
should use is saved in a JSON file here
`rappdirs::user_cache_dir("tximeta")`.
More information about the Bioc-devel
mailing list