View source: R/set_eurostat_cache.R
| set_eurostat_cache_dir | R Documentation | 
This function will store your cache_dir path on your local machine
and would load it for future sessions. Type
Sys.getenv("EUROSTAT_CACHE_DIR") to
find your cached path.
Alternatively, you can store the cache_dir manually with the following
options:
 Run Sys.setenv(EUROSTAT_CACHE_DIR = "cache_dir"). You
would need to run this command on each session
(Similar to install = FALSE).
 Set options(eurostat_cache_dir  = "cache_dir"). Similar to
the previous option. This is provided for backwards compatibility
purposes.
 Write this line on your .Renviron file:
EUROSTAT_CACHE_DIR = "value_for_cache_dir" (same behavior than
install = TRUE). This would store your cache_dir
permanently.
set_eurostat_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.
Diego Hernangómez
rappdirs::user_config_dir()
Other cache utilities: 
clean_eurostat_cache()
# Don't run this! It would modify your current state
## Not run: 
set_eurostat_cache_dir(verbose = TRUE)
## End(Not run)
Sys.getenv("EUROSTAT_CACHE_DIR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.