getDefaultSArgs {RGtkBindingGenerator} | R Documentation |
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
).
getDefaultSArgs(params, defs) getSArgs(params)
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. |
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.
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.omegahat.org/RGtk, http://www.omegahat.org/RGtkBindingGenerator, http://www.gtk.org http://www.pygtk.org(?)