setCacheDir {cacheSweave}R Documentation

Set Cache Directory

Description

Set/Get cache directory where files are stored

Usage

setCacheDir(path)
getCacheDir()

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


[Package cacheSweave version 0.4-3 Index]