Save a rendered widget to an HTML file (e.g. for sharing with others).
1 2 | saveWidget(widget, file, selfcontained = TRUE, libdir = NULL,
background = "white", knitrOptions = list())
|
widget |
Widget to save |
file |
File to save HTML into |
selfcontained |
Whether to save the HTML as a single self-contained file (with external resources base64 encoded) or a file with external resources placed in an adjacent directory. |
libdir |
Directory to copy HTML dependencies into (defaults to filename_files). |
background |
Text string giving the html background color of the widget. Defaults to white. |
knitrOptions |
A list of knitr chunk options. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.