createFunctionTemplates {RDCOMEvents} | R Documentation |
This function is used in the generation of R code from
information from a type library to provide a "compiled"
interface to a collection of DCOM interfaces.
This generation is implemented as part of the
generateInterface
in the SWinTypeLibs
package.
This function generates the basic definitions of the
R functions provided in the given DCOM interface's methods.
Depending on the choice of function for the argument op
,
information about the coercions of the parameters to R types
and the return value is also encoded in the function.
createFunctionTemplates(funcs, op = createCompiledFunction, ...)
funcs |
the descriptions of the methods in the DCOM interface.
See getFuncs . |
op |
the function that is used to generate the
stubs for each method description. This is the heart of the
function. The built-in choices are
createFunction and createCompiledFunction .
The latter is greatly preferred as it includes information about the types
of the parameters and return value. |
... |
additional arguments that are passed to the op function
each time it is called, i.e. for each method definition. |
A list of values returned from calling the op
function for each
method. For the two built-in functions, these are simply functions
with special attributes.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/RDCOMClient http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinTypeLibs http://www.omegahat.org/SWinRegistry
createCompiledFunction
createFunction
generateInterface