show_html: Show HTML

View source: R/utils2.R

show_htmlR Documentation

Show HTML

Description

Render html in rstudio viewer or browser.

Usage

show_html(..., use_viewer = !is.null(getOption("viewer")))

Arguments

...

one or more character strings

use_viewer

logical; if TRUE, attempts to use rstudioapi::viewer or opens in default browser on error

Value

The html code (invisibly) as a character string.

See Also

show_math, show_markdown

Examples

## Not run: 
show_html("
<div align = center><h1>A heading<sup>&dagger;</sup><h1></div>
<font size = 1><sup>&dagger;</sup>That was the heading</font>
")

library('htmlTable')
show_html(htmlTable(mtcars, output = FALSE), use_viewer = FALSE)

## End(Not run)


raredd/rawr documentation built on May 9, 2024, 6:14 p.m.