esp_set_cache_dir {mapSpain} | R Documentation |
Set your mapSpain cache dir
Description
This function will store your cache_dir
path on your local machine and
would load it for future sessions. Type Sys.getenv("MAPSPAIN_CACHE_DIR")
to
find your cached path.
Alternatively, you can store the cache_dir
manually with the following
options:
Run
Sys.setenv(MAPSPAIN_CACHE_DIR = "cache_dir")
. You would need to run this command on each session (Similar toinstall = FALSE
).Set
options(mapSpain_cache_dir = "cache_dir")
. Similar to the previous option. This is not recommended any more, and it is provided for backwards compatibility purposes.Write this line on your .Renviron file:
MAPSPAIN_CACHE_DIR = "value_for_cache_dir"
(same behavior thaninstall = TRUE
). This would store yourcache_dir
permanently.
Usage
esp_set_cache_dir(
cache_dir,
overwrite = FALSE,
install = FALSE,
verbose = TRUE
)
Arguments
cache_dir |
A path to a cache directory. On missing value the function
would store the cached files on a temporary dir (See |
overwrite |
Logical. If this is set to |
install |
Logical. If |
verbose |
Logical, displays information. Useful for debugging,
default is |
Value
An (invisible) character with the path to your cache_dir
.
See Also
Other cache utilities:
esp_clear_cache()
,
esp_detect_cache_dir()
Examples
# Don't run this! It would modify your current state
## Not run:
esp_set_cache_dir(verbose = TRUE)
## End(Not run)
Sys.getenv("MAPSPAIN_CACHE_DIR")