grapes-c-grapes: expression, detects all assigned variables and saves them...

Description Usage Arguments Value Examples

Description

expression, detects all assigned variables and saves them into a file. If the file given exists the variables are read from the cache file and not calculated again. In order to delete the cache simply delete the associated file.

Usage

1
ex %c% filename

Arguments

ex

The R expression to be cached. Use brackets for multiline statements.

filename

The filename of the cache file.

Value

Nothing. Just caches all assigned variables in filename.

Examples

1
2
3
# Is executed only if the file does not exist, otherwise
# samples a and b are read from 'samples.Rd'
{ a <- rnorm(1e5) } %c% 'samples.Rd'

cdiener/dycone documentation built on Sept. 9, 2018, 1:20 p.m.