mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-14 01:18:07 -05:00
* 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
27 lines
596 B
R
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}
|