| reactive | R Documentation |
reactive() declares a state field of a custom widget (see
widget()). Reading the field returns its value; assigning a different
value (self$count <- self$count + 1L) invalidates the widget and
schedules a repaint. Repaints are batched: any number of assignments in
one event-loop tick produce a single render and a single screen diff.
reactive(value = NULL, watch = NULL)
value |
Initial value. |
watch |
Optional |
An object of class termr_reactive.
reactive(0L)
reactive("", watch = function(self, value, old) message("now ", value))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.