saveObject              package:R.utils              R Documentation

_S_a_v_e_s _a_n _o_b_j_e_c_t _t_o _a _f_i_l_e _o_r _a _c_o_n_n_e_c_t_i_o_n

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

     Saves an object to a file or a connection.

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

     ## Default S3 method:
     saveObject(object, file=NULL, path=NULL, compress=TRUE, ...)

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

  object: The object to be saved.

    file: A filename or 'connection' where the object should be saved.
          If 'NULL', the filename will be the hash code of the object
          plus ".xdr".

    path: Optional path, if 'file' is a filename.

compress: If 'TRUE', the file is compressed to, otherwise not.

     ...: Other arguments accepted by 'save()' in the base package.

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

     Returns (invisibly) the pathname or the 'connection'.

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

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

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

     'loadObject'() to load an object from file. 'digest' for how hash
     codes are calculated from an object.

