show_html | R Documentation |
Render html in rstudio viewer or browser.
show_html(..., use_viewer = !is.null(getOption("viewer")))
... |
one or more character strings |
use_viewer |
logical; if |
The html code (invisibly) as a character string.
show_math
, show_markdown
## Not run:
show_html("
<div align = center><h1>A heading<sup>†</sup><h1></div>
<font size = 1><sup>†</sup>That was the heading</font>
")
library('htmlTable')
show_html(htmlTable(mtcars, output = FALSE), use_viewer = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.