reactiveConsole: Activate reactivity in the console

Description Usage Arguments Examples

View source: R/reactives.R

Description

This is an experimental feature that allows you to enable reactivity at the console, for the purposes of experimentation and learning.

Usage

1
reactiveConsole(enabled)

Arguments

enabled

Turn console reactivity on or off?

Examples

1
2
3
4
5
6
7
8
reactiveConsole(TRUE)
x <- reactiveVal(10)
y <- observe({
  message("The value of x is ", x())
})
x(20)
x(30)
reactiveConsole(FALSE)

shiny documentation built on Jan. 26, 2021, 1:06 a.m.