pl_cache: Cache data locally for later usage.

Description Usage Arguments Details Examples

View source: R/pl_cache.R

Description

Cache data locally for later usage.

Usage

1
2
3

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## 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 Jan. 1, 2021, 2:57 p.m.