setCacheDir           package:cacheSweave           R Documentation

_S_e_t _C_a_c_h_e _D_i_r_e_c_t_o_r_y

_D_e_s_c_r_i_p_t_i_o_n:

     Set/Get cache directory where files are stored

_U_s_a_g_e:

     setCacheDir(path)
     getCacheDir()

_A_r_g_u_m_e_n_t_s:

    path: character, directory where cache files will be stored

_D_e_t_a_i_l_s:

     '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.

_V_a_l_u_e:

     'getCacheDir' returns the current cache directory.

_A_u_t_h_o_r(_s):

     Roger D. Peng rpeng@jhsph.edu

