readCacheHeader           package:R.cache           R Documentation

_L_o_a_d_s _d_a_t_a _f_r_o_m _f_i_l_e _c_a_c_h_e

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

     Loads data from file cache, which is unique for an optional key
     object.

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

     ## Default S3 method:
     readCacheHeader(file, ...)

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

    file: A filename or a 'connection'.

     ...: Not used.

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

     Returns a named 'list' structure with element 'identifier',
     'version', 'comment' (optional), 'sources' (optional), and
     'timestamp'.

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

     Henrik Bengtsson (<URL: http://www.braju.com/R/>)

_S_e_e _A_l_s_o:

     'findCache'(). 'loadCache'(). 'saveCache'().

_E_x_a_m_p_l_e_s:

     data <- 1:120
     key <- list(some=1, vari=2, ables=3)

     saveCache(key=key, data, comment="A simple example of a cached object.")

     header <- readCacheHeader(findCache(key=key))
     print(header)

     # Clean up
     file.remove(findCache(key=key))

