declareSignal | R Documentation |
Declares a signal field that is lazily populated when the field is first accessed. This avoids the need for the constructor/initializer to explicitly create the signal.
declareSignal(expr)
expr |
The expression that names the signal and specifies its signature. See the example. |
A list of field definitions, suitable for passing to
setRefClass
.
Michael Lawrence
setRefClass("Dataset", fields = c(elements = "list", declareSignal(elementsChanged(which))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.