Retrieve files from the local cache

retrieve(id, dir = content_dir())

Arguments

id

a content_id

dir

the path we should use for permanent / on-disk storage of the registry. An appropriate default will be selected (also configurable using the environmental variable CONTENTID_HOME), if not specified.

Value

path to a local copy of the file.

See also

store

Examples

if (FALSE) { # interactive() ## Real users won't use a temporary dir Sys.setenv("CONTENTID_REGISTRIES" = tempdir()) # Store & retrieve local file vostok_co2 <- system.file("extdata", "vostok.icecore.co2", package = "contentid") id <- store(vostok_co2) retrieve(id) ## Real users won't use a temporary dir Sys.unsetenv("CONTENTID_REGISTRIES") }