createEventServerFromTemplate {RDCOMEvents} | R Documentation |
This function merges user-supplied methods and a template for an event handler and creates an instance of the server using the R code as methods.
createEventServerFromTemplate(methods, template, interfaceName)
methods |
a named list of functions giving the methods that are to be implemented in R by this server instance. Methods not specified are degenerate and are not called. |
template |
a template describing the interface for the "standard"
or expected event handler. This gives information about all the
methods, their identifiers and the types of the parameters and the
return values.
See createCOMEventServerInfo . |
interfaceName |
the human-readable name of the event interface being implemented, e.g. AppEvents, WorkbookEvents, etc. This is only used for providing meaningful error messages. |
This returns the value from createCOMEventServer
,
so an object containing a reference to the low-level C++ object
that represents the instance of the DCOM event handler.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
http://www.omegahat.org/RDCOMClient http://www.omegahat.org/RDCOMServer http://www.omegahat.org/SWinTypeLibs
createCOMEventServer
mergeFunctions
which handles inserting the contracts for coercing the
arguments to the expected types.
createCOMEventServerInfo