Description Objects from the Class Slots Extends Methods Author(s) References See Also
The idea of this is to have a function that acts as an asynchronous
event handler or a method for a mutable object
in the sense of a Java, C++ or Python.
We can use this as a regular function in R, but we can also use
convenience functions (\$
and names
)
to access the environment of the function and the mutable, dynamic
variables.
Objects can be created by calls of the form new("CallbackFunction", function(...) # body)
.
These are regular function objects with the additional methods for accessing the
mutable values associated with them and their environment.
.Data
:Object of class "function"
Class "function"
, from data part.
Class "OptionalFunction"
, by class "function"
.
Class "PossibleMethod"
, by class "function"
.
signature(x = "CallbackFunction")
: access a particular variable in the function's environment.
signature(x = "CallbackFunction")
: get a list of all the objects in the function's environment.
Duncan Temple Lang <duncan@wald.ucdavis.edu>
S4 classes and methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.