writeBaseFile           package:aroma.Base           R Documentation

_L_o_w-_l_e_v_e_l _f_u_n_c_t_i_o_n _t_o _w_r_i_t_e _a _B_A_S_E _f_i_l_e _s_t_r_u_c_t_u_r_e _t_o _a _c_o_n_n_e_c_t_i_o_n _o_r _a _f_i_l_e

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

     Low-level function to write a BASE file structure to a connection
     or a file.  Note that it is required that the structure is
     correct; Only minimal validation of structure is done, e.g. the
     existance of a mandatory header named 'section' is asserted.

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

     ## Default S3 method:
     writeBaseFile(con, base, verbose=FALSE, ...)

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

     con: A 'connection' or a 'character' string filename.

    base: The BASE file 'list' structure to be written.

 verbose: Either a 'logical', a 'numeric', or a 'Verbose' object
          specifying how much verbose/debug information is written to
          standard output. If a Verbose object, how detailed the
          information is is specified by the threshold level of the
          object. If a numeric, the value is used to set the threshold
          of a new Verbose object. If 'TRUE', the threshold is set to
          -1 (minimal). If 'FALSE', no output is written (and neither
          is the R.utils package required). 

     ...: Not used.

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

     Returns 'TRUE', if structure was succesfully written, otherwise
     'FALSE'.

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

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

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

     'readBaseFile'(). 'writeBaseFileSection'(). See 'stdout()' in
     showConnections to write to standard output.

