Learn R Programming

madrat (version 3.15.6)

cachePut: Tool: cachePut

Description

Save data to cache

Usage

cachePut(x, prefix, type, args = NULL, graph = NULL, ...)

Arguments

x

data that should be written to cache

prefix

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

type

output type (e.g. "TauTotal")

args

a list of named arguments used to call the given function

graph

A madrat graph as returned by getMadratGraph Will be created with getMadratGraph if not provided.

...

Additional arguments for getMadratGraph in case that no graph is provided (otherwise ignored)

Author

Jan Philipp Dietrich

See Also

cachePut, cacheName

Examples

Run this code
if (FALSE) {
example <- 1
madrat:::cachePut(example, "calc", "Example", packages = "madrat")
}

Run the code above in your browser using DataLab