cache: Cache expression result

View source: R/file.R

cacheR Documentation

Cache expression result

Description

expression result is saved as rds with time stamp. If cached file already exist, it try to use it.

Usage

cache(expr, path, expire = NULL, required_ver = NULL)

Arguments

expr

expression for caching

path

path for cache file

expire

diftim until the cache is expired, e.g. as.difftime function with unit argument.

required_ver

integer for controlling file format version; smaller version file is always ignored.

Value

loaded file


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.