| render_widget | R Documentation |
Lays out and paints a widget tree into a ScreenBuffer without a terminal. Useful for snapshot tests and for checking layouts interactively.
render_widget(x, width = 80L, height = 24L)
x |
A widget, a Screen or an App. |
width, height |
Screen size in cells. |
A ScreenBuffer; use $to_text() for plain text.
buf <- render_widget(vertical(label("a"), label("b")), 10, 2)
buf$to_text()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.