Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

readCacheHeader

Loads data from file cache


Description

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

Usage

## Default S3 method:
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.

Author(s)

Henrik Bengtsson

See Also

Examples

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

R.cache

Fast and Light-Weight Caching (Memoization) of Objects and Results to Speed Up Computations

v0.15.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.