Files
shiny/man/observe.Rd
Joe Cheng 4101c1efd0 Rd docs for observe, reactive, reactiveTimer
Also improve some error messages
2012-07-28 01:47:19 -07:00

23 lines
668 B
R

\name{observe}
\alias{observe}
\title{Observe}
\usage{
observe(func)
}
\arguments{
\item{func}{The function to observe. It must not have any
parameters. Any return value from this function will be
ignored.}
}
\description{
Creates an observer from the given function. An observer
is like a reactive function in that it can read reactive
values and call reactive functions, and will
automatically re-execute when those dependencies change.
But unlike reactive functions, it doesn't yield a result
and can't be used as an input to other reactive
functions. Thus, observers are only useful for their side
effects (for example, performing I/O).
}