Files
shiny/man/reactive.Rd
Joe Cheng 41716d160b Change startApp/runApp signature
Also change example apps to launch directly using runApp
2012-07-18 09:00:32 -07:00

32 lines
943 B
R

\name{reactive}
\alias{reactive}
\title{Create a Reactive Function}
\usage{
reactive(x)
}
\arguments{
\item{x}{The value or function to make reactive.}
}
\value{
A reactive function. (Note that reactive functions can
only be called from within other reactive functions.)
}
\description{
Wraps a normal function to create a reactive function.
}
\details{
Conceptually, a reactive function is a function whose
result will change over time.
Reactive functions are functions that can read reactive
values and call other reactive functions. Whenever a
reactive value changes, any reactive functions that
depended on it are marked as "invalidated" and will
automatically re-execute if necessary. If a reactive
function is marked as invalidated, any other reactive
functions that recently called it are also marked as
invalidated. In this way, invalidations ripple through
the functions that depend on each other.
}