pl_cache: Cache data locally for later usage.

View source: R/pl_cache.R

pl_cacheR Documentation

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

## 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")

## End(Not run)

ropensci/pleiades documentation built on May 18, 2022, 5:40 p.m.