Similar to saveWidget()
with the addition
that both the parent widget and the enclosed child widget are saved to two different HTML files.
1 2 | saveWidgetframe(widget, file, selfcontained = FALSE, libdir = NULL,
background = "white", knitrOptions = list())
|
widget |
widgetframe to save |
file |
File to save the parent widget into. The child widget will be saved to 'basename(file)_widget/index.html'. |
selfcontained |
Whether to save the parent and child HTMLs as a single self-contained files. WARNING: Setting this option to true will still result in two HTMLs, one for the parent and another for the child widget (with external resources base64 encoded), or files 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.