| get_eurostat_cache {restatapi} | R Documentation |
Load an object from cache
Description
Search and load the object (dataset/toc/DSD) from cache
Usage
get_eurostat_cache(oname, cache_dir = NULL, verbose = FALSE)
Arguments
oname |
a character string with the name of the object (toc, dataset id, DSD id) |
cache_dir |
a path to a cache directory to search in. The default is |
verbose |
a logical value with default |
Details
If the given name or the beginning of the name (for datasets) found in the cache then it returns the value of the object otherwise it returns NULL.
Value
the requested object if exists in the '.restatapi_env' or in the cache_dir, otherwise it returns the NULL value.
Examples
dt<-data.frame(txt=c("a","b","c"),nr=c(1,2,3))
put_eurostat_cache(dt,"teszt")
get_eurostat_cache("teszt",verbose=TRUE)