| 1 |
\name{view_html} |
| 2 |
\alias{view_html} |
| 3 |
\title{HTML Output for 'view.} |
| 4 |
\description{An alternative to 'View' for use with 'view'.} |
| 5 |
\usage{ |
| 6 |
view_html(x,title=deparse(substitute(x)),output,\dots) |
| 7 |
} |
| 8 |
\arguments{ |
| 9 |
\item{x}{the result of \code{viewPrep}, a matrix of character strings. |
| 10 |
} |
| 11 |
\item{title}{an optional character string; shown as the title of the |
| 12 |
display.} |
| 13 |
\item{output}{a function or the name of a function. It determines how |
| 14 |
where the HTML code is directed to. |
| 15 |
|
| 16 |
If the working environment is RStudio, the default value is |
| 17 |
\code{"file.show"}. In other interactive environments it is |
| 18 |
\code{"browser"}. In non-interactive sessions it is |
| 19 |
\code{"stdout"}. |
| 20 |
|
| 21 |
If \code{output} equals \code{"browser"} the generated HTML code |
| 22 |
is shown using \code{\link[utils]{browseURL}}. If \code{output} |
| 23 |
equals \code{"stdout"} the HTML code is written to the console |
| 24 |
output window. If \code{output} equals \code{"file.show"}, the |
| 25 |
function \code{file.show} is used. |
| 26 |
|
| 27 |
If \code{view_html} is called within a \emph{Jupyter} session, |
| 28 |
the HTML code created is envelopped in a pair of \code{<div>} tags |
| 29 |
and included into the Jupyter output.} |
| 30 |
\item{\dots}{other arguments; ignored.} |
| 31 |
} |
| 32 |
\examples{ |
| 33 |
\dontrun{ |
| 34 |
example(data.set) |
| 35 |
view(Data,vfunc=view_html) |
| 36 |
} |
| 37 |
} |