R.cache (version 0.14.0)

readCacheHeader: Loads data from file cache

Description

Loads data from file cache, which is unique for an optional key object.

Usage

# S3 method for default
readCacheHeader(file, ...)

Arguments

file

A filename or a connection.

...

Not used.

Value

Returns a named list structure with element identifier, version, comment (optional), sources (optional), and timestamp.

See Also

findCache(). loadCache(). saveCache().

Examples

Run this code
# NOT RUN {
data <- 1:120
key <- list(some=1, vari=2, ables=3)

saveCache(key=key, data, comment="A simple example of a cached object.")

header <- readCacheHeader(findCache(key=key))
print(header)

# Clean up
file.remove(findCache(key=key))
# }

Run the code above in your browser using DataCamp Workspace