| render_html | R Documentation |
Render a styled HTML fragment
render_html(x, width = 80, height = 24, color = TRUE, trim = TRUE)
x |
A widget, Screen, App, or ScreenBuffer. |
width, height |
Frame size in cells. |
color |
Include framebuffer colours even when |
trim |
Remove trailing spaces from each line? |
An embeddable <pre> fragment. Styling is approximate and depends
on the browser's monospace font and CSS environment.
cat(render_html(label("Ready", style = style(foreground = "green", bold = TRUE))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.