gtropic_cache_enable() enables storage of downloaded G-TROPIC source files
for reuse. gtropic_cache_disable() stops using the cache for subsequent
retrievals but leaves existing files unchanged.
Arguments
- dir
Optional path for the cache. If
NULL, the current value returned bygtropic_cache_dir()is used. A custom location may be useful when exposure files must be stored on a larger disk.- persist
Logical. Should this enabled or disabled state be used in future R sessions? Defaults to
FALSE, so the change affects only the current session.
Details
Caching is enabled by default for each R session. These functions change the
gtropic.cache_enabled option for the current session. Set persist = TRUE
to use the same choice in future sessions; this writes the setting under
tools::R_user_dir("gtropic", "config"). The package never edits
.Rprofile. Enabling creates the cache directory if needed; disabling does
not delete cached files. Use gtropic_cache_clear() to delete them.
