catr_set_cache_dir {CatastRo} | R Documentation |
This function will store your cache_dir
path on your local machine and
would load it for future sessions. Type Sys.getenv("CATASTROESP_CACHE_DIR")
to find your cached path.
Alternatively, you can store the cache_dir
manually with the following
options:
Run Sys.setenv(CATASTROESP_CACHE_DIR = "cache_dir")
. You would need to
run this command on each session (Similar to install = FALSE
).
Write this line on your .Renviron file:
CATASTROESP_CACHE_DIR = "value_for_cache_dir"
(same behavior than
install = TRUE
). This would store your cache_dir
permanently.
catr_set_cache_dir(
cache_dir,
overwrite = FALSE,
install = FALSE,
verbose = TRUE
)
cache_dir |
A path to a cache directory. On missing value the function
would store the cached files on a temporary dir (See |
overwrite |
If this is set to |
install |
if |
verbose |
Logical, displays information. Useful for debugging,
default is |
An (invisible) character with the path to your cache_dir
.
Sometimes cached files may be corrupt. On that case, try re-downloading
the data setting update_cache = TRUE
.
If you experience any problem on download, try to download the
corresponding file by any other method and save it on your
cache_dir
. Use the option verbose = TRUE
for debugging the API query.
Other cache utilities:
catr_clear_cache()
# Don't run this! It would modify your current state
## Not run:
catr_set_cache_dir(verbose = TRUE)
## End(Not run)
Sys.getenv("CATASTROESP_CACHE_DIR")