Learn R Programming

contentid (version 0.0.15)

retrieve: Retrieve files from the local cache

Description

Retrieve files from the local cache

Usage

retrieve(id, dir = content_dir())

Arguments

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

Run this code
# NOT RUN {
# }
# NOT RUN {
# Store & retrieve local file
vostok_co2 <- system.file("extdata", "vostok.icecore.co2",
                          package = "contentid")
 id <- store(vostok_co2)
 retrieve(id)

# }

Run the code above in your browser using DataLab