Learn R Programming

pleiades (version 0.3.0)

pl_cache: Cache data locally for later usage.

Description

Cache data locally for later usage.

Usage

pl_cache(force = FALSE, ...)

pl_cache_clear(which = NULL, prompt = TRUE)

Arguments

force

(logical) Force update of the cache. Default: FALSE

...

Curl options, see curl::curl_options()

which

(character) One of locations, names, or places.

prompt

(logical) Prompt before clearing all files in cache? No prompt used when DOIs passed in. Default: TRUE

Details

data are cached in rappdirs::user_cache_dir("pleiades")

Examples

Run this code
# NOT RUN {
pl_cache()
# pl_cache(force = TRUE)

# clear all files
# pl_cache_clear()

# clear a single file
# pl_cache_clear(which = "locations")
# pl_cache_clear(which = "places")
# pl_cache_clear(which = "names")
# }

Run the code above in your browser using DataLab