as_html | R Documentation |
Render an emphatic object to HTML
as_html(
x,
...,
font_size = NULL,
style = list(),
complete = FALSE,
browsable = FALSE
)
x |
emphatic object |
... |
other arguments passed to |
font_size |
CSS font-size. Default: NULL means to not adjust font size.
Otherwise, use valid CSS |
style |
html tag styling to apply to the |
complete |
logical. Default: FALSE. If TRUE, then add DOCTYPE and the tags for 'html', 'body' and 'head' to make a complete standalone html file. |
browsable |
Should the SVG be rendered to the RStudio Viewer pane when when printed (instead of console output)? Default: FALSE |
Character string containing HTML representation
hl_diff('hello', 'there') |>
as_html() |>
cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.