simpleCache: Simple key-value cache function accepting closures

View source: R/miscellaneous.R

simpleCacheR Documentation

Simple key-value cache function accepting closures

Description

Simple key-value cache function accepting closures

Usage

simpleCache(object, key, path = getOption("custom_data_path"), refresh = FALSE)

Arguments

object

closure with return expression to be cached

key

cache key

path

path where to cache the data

refresh

bool option to force refresh of cache, default FALSE

Value

object, (potentially cached version)


mountainMath/mountainmathHelpers documentation built on May 3, 2024, 5:55 p.m.