cachePut: cachePut

View source: R/cachePut.R

cachePutR Documentation

cachePut

Description

Save data to cache

Usage

cachePut(x, prefix, type, fname, callString)

Arguments

x

data that should be written to cache

prefix

function prefix (e.g. "calc" or "read")

type

output type (e.g. "TauTotal")

fname

The name of the cache file to be written.

callString

A string representation of the function call that leads to the cache file being written. Will be attached as an attribute.

Author(s)

Jan Philipp Dietrich, Pascal Sauer

See Also

cachePut, cacheName

Examples

## Not run: 
fname <- madrat:::cacheName("calc", "Example")
madrat:::cachePut(1, "calc", "Example", fname, 'calcOutput("Example")')

## End(Not run)

pik-piam/madrat documentation built on July 4, 2025, 4:56 a.m.