mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-29 08:48:13 -05:00
27 lines
703 B
R
27 lines
703 B
R
\name{reactivePrint}
|
|
\alias{reactivePrint}
|
|
\title{Printable Output}
|
|
\usage{
|
|
reactivePrint(func)
|
|
}
|
|
\arguments{
|
|
\item{func}{A function that returns a printable R
|
|
object.}
|
|
}
|
|
\description{
|
|
Makes a reactive version of the given function that also
|
|
turns its printable result into a string. The reactive
|
|
function is suitable for assigning to an \code{output}
|
|
slot.
|
|
}
|
|
\details{
|
|
The corresponding HTML output tag can be anything (though
|
|
\code{pre} is recommended if you need a monospace font
|
|
and whitespace preserved) and should have the CSS class
|
|
name \code{shiny-text-output}.
|
|
|
|
The result of executing \code{func} will be printed
|
|
inside a \code{\link[utils]{capture.output}} call.
|
|
}
|
|
|