setCacheDir: Set Cache Directory

Description Usage Arguments Details Value Author(s)

Description

Set/Get cache directory where files are stored

Usage

1
2

Arguments

path

character, directory where cache files will be stored

Details

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.

Value

getCacheDir returns the current cache directory.

Author(s)

Roger D. Peng rpeng@jhsph.edu


rdpeng/cachesweave documentation built on May 27, 2019, 3:06 a.m.