powered by
This is an experimental feature that allows you to enable reactivity at the console, for the purposes of experimentation and learning.
reactiveConsole(enabled)
Turn console reactivity on or off?
# NOT RUN { reactiveConsole(TRUE) x <- reactiveVal(10) y <- observe({ message("The value of x is ", x()) }) x(20) x(30) reactiveConsole(FALSE) # }
Run the code above in your browser using DataLab