writeCode            package:SWinTypeLibs            R Documentation

_W_r_i_t_e _t_h_e _g_e_n_e_r_a_t_e_d _c_o_d_e _t_o _a _s_t_r_e_a_m/_c_o_n_n_e_c_t_i_o_n.

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

     These methods handle writing the generated code to  a directory,
     file or connection so that the code  can be used in future R
     sessions.

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

     writeCode(def, file = stdout(), context = NULL,
                prepend = character(),
                enumsAsValues = FALSE, 
                namespace = "NAMESPACE",
                ...)
     writeNamespace(ns, nsFile = "NAMESPACE")

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

     def: the code definitions to be written.

    file: the connection to which the code will be written. If this is
          a directory, individual files are created for each class.

 context: contextual information that can govern the output of the
          code.

 prepend: a character vector giving the fully-qualified names of files
          whose contents are to be inserted before the generated code.
          If the output is to a directory, these files are just copied
          directly there as separate files with the same names as
          given.

enumsAsValues: a logical value that is passed as the third argument to 
          'writeEnums' and this controls whether the individual
          name-value pairs within an enumeration definition are defined
          as separate, individual R variables.

namespace: a character vector giving the name of the file to which the 
          name space information, e.g export, exportClasses, etc.,
          should be written. This defaults to the usual NAMESPACE.  To
          avoid having the name space information written, specify
          either 'NA' or 'character()'. 

     ...: any additional information that is passed onto the different
          methods.

      ns: the name space information returned from 'writeCode' which is
          to be written to the file given by 'nsFile'.

  nsFile: the name of the file to which the name space information is
          to be written. This is a character vector.

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

     Duncan Temple Lang <duncan@wald.ucdavis.edu>

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.omegahat.org/SWinTypeLibs>

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

     'define' 'computeFunctionInformation'

