Learn R Programming

ProjectTemplate (version 0.11.0)

.write.cache: Write a variable and its metadata to cache

Description

Write a variable and its metadata to cache

Usage

.write.cache(cache.hash, ...)

Value

No value is returned, this function is called for its side effects.

Arguments

cache.hash

a data.frame with metadata about the variable, see details for more information.

...

extra parameters passed to save.

Details

cache.hash is a data frame with two columns: variable and hash.
Row name VAR is the name of the variable to save.
Row name CODE is the hash value of the code to compute variable.
Row name DEPENDS.* are the dependent variables that CODE depends on.c
The helper function .create.cache.hash creates a suitable dataframe