Files
shiny/man/reactiveConsole.Rd
Hadley Wickham a30ba9226d Implement reactiveConsole() (#3092)
* Implement reactiveConsole(). Fixes #2518

* Also includes makeReactiveBinding tweaks
  * use `reactiveConsole()` to provide a nicer example
  * simplified the implementation using `reactiveVal()`
  * remove from documentation indexes since you probably don't want to be promoting this function
2020-10-07 15:37:14 -05:00

27 lines
596 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reactives.R
\name{reactiveConsole}
\alias{reactiveConsole}
\title{Activate reactivity in the console}
\usage{
reactiveConsole(enabled)
}
\arguments{
\item{enabled}{Turn console reactivity on or off?}
}
\description{
This is an experimental feature that allows you to enable reactivity
at the console, for the purposes of experimentation and learning.
}
\examples{
reactiveConsole(TRUE)
x <- reactiveVal(10)
y <- observe({
message("The value of x is ", x())
})
x(20)
x(30)
reactiveConsole(FALSE)
}
\keyword{internal}