| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/reactives.R |
| 3 |
\name{reactiveConsole} |
| 4 |
\alias{reactiveConsole} |
| 5 |
\title{Activate reactivity in the console} |
| 6 |
\usage{ |
| 7 |
reactiveConsole(enabled) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{enabled}{Turn console reactivity on or off?} |
| 11 |
} |
| 12 |
\description{ |
| 13 |
This is an experimental feature that allows you to enable reactivity |
| 14 |
at the console, for the purposes of experimentation and learning. |
| 15 |
} |
| 16 |
\examples{ |
| 17 |
reactiveConsole(TRUE) |
| 18 |
x <- reactiveVal(10) |
| 19 |
y <- observe({ |
| 20 |
message("The value of x is ", x()) |
| 21 |
}) |
| 22 |
x(20) |
| 23 |
x(30) |
| 24 |
reactiveConsole(FALSE) |
| 25 |
} |
| 26 |
\keyword{internal} |