cached: Declare a cached object

Description Usage Arguments See Also Examples

Description

Declare a cached object

Usage

1
2
3
4
5
6
cached(
  ...,
  root = cache_root(),
  ext = c(".rds", ".fst", ".feather", ".rds.lz4", ".rds.snz"),
  verbose = getOption("verbose")
)

Arguments

...

components of cache key (NOT the cached expression!)

root

function that yields the path on disk

ext

form of cached data (".fst" is fastest for tabular data)

verbose

logical

See Also

lazy_or

Examples

1
cached("exp", "1", verbose = TRUE) %or% exp(1)

BAAQMD/cacher documentation built on May 20, 2020, 12:44 a.m.