This function will store a copy of the named data set in the cache
directory. This cached copy of the data set will then be given precedence
at load time when calling load.project. Cached data sets are
stored as .RData files.
Usage
cache(variable, ...)
Arguments
variable
A character vector containing the name of the variable to
be saved.
# NOT RUN {library('ProjectTemplate')
# }# NOT RUN {create.project('tmp-project')
setwd('tmp-project')
dataset1 <- 1:5cache('dataset1')
setwd('..')
unlink('tmp-project')
# }