setCacheDir {cacheSweave} | R Documentation |
Set/Get cache directory where files are stored
setCacheDir(path) getCacheDir()
path |
character, directory where cache files will be stored |
setCacheDir
will create the cache directory if it does not
already exist. When the package cacheSweave
is loaded, the
cache directory is initially set to the current directory (".").
This function should generally be called in the very first code chunk
of the Sweave document and caching should not be turned on for
that code chunk.
getCacheDir
returns the current cache directory.
Roger D. Peng rpeng@jhsph.edu