mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-14 01:18:07 -05:00
These functions were temporarily ripped out of Shiny and moved to the htmltools package. We've discovered that it's safe to keep including them in shiny; as long as the functions in shiny and the functions in htmltools are identical, the user won't receive a conflict warning.
22 lines
563 B
R
22 lines
563 B
R
\name{singleton}
|
|
\alias{is.singleton}
|
|
\alias{singleton}
|
|
\title{Include content only once}
|
|
\usage{
|
|
singleton(x, value = TRUE)
|
|
|
|
is.singleton(x)
|
|
}
|
|
\arguments{
|
|
\item{x}{A \code{\link{tag}}, text, \code{\link{HTML}}, or list.}
|
|
|
|
\item{value}{Whether the object should be a singleton.}
|
|
}
|
|
\description{
|
|
Use \code{singleton} to wrap contents (tag, text, HTML, or lists) that should
|
|
be included in the generated document only once, yet may appear in the
|
|
document-generating code more than once. Only the first appearance of the
|
|
content (in document order) will be used.
|
|
}
|
|
|