getDefaultSArgs     package:RGtkBindingGenerator     R Documentation

_C_o_d_e/_V_a_r_i_a_b_l_e _g_e_n_e_r_a_t_o_r_s _f_o_r _p_a_r_a_m_e_t_e_r_s _i_n _g_e_n_e_r_a_t_e_d _S _f_u_n_c_t_i_o_n_s

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

     These functions relate to generating the parameters in S functions
     that interface to the C routines in the .defs objects. 'getSArgs'
     returns the names of the S parameters. 'getDefaultSArgs' returns
     the code for default values for each of the arguments (in the form
     '= value').

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

     getDefaultSArgs(params, defs)
     getSArgs(params)

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

  params: the parameters from the description of the C routine

    defs: the top-level description of all of elements described in the
          .defs file, i.e. classes, enums, flags, etc. These are used
          to determine the type of the parameter and the appropriate
          default values and code to coerce S values to the appropriate
          type.

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

     A character vector  whose length is equal to the number of
     parameters in the C routine (given by 'params').

     For 'getSArgs', this elements of the vector are the names of the
     parameters.

     For 'getDefaultSArgs', the elements are the S code defining the
     default value or simply the empty string (""). The names of the
     elements are the names of the parameters.

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

     Duncan Temple Lang <duncan@research.bell-labs.com>

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

     <URL: http://www.omegahat.org/RGtk>, <URL:
     http://www.omegahat.org/RGtkBindingGenerator>, <URL:
     http://www.gtk.org> <URL: http://www.pygtk.org>(?)

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

     'collapseConstructors' 'genRCode'

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

