Save a rendered widget to an HTML file (e.g. for sharing with others).
saveWidget( widget, file, selfcontained = TRUE, libdir = NULL, background = "white", title = class(widget)[], knitrOptions = list() )
Widget to save
File to save HTML into
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.
Directory to copy HTML dependencies into (defaults to filename_files).
Text string giving the html background color of the widget. Defaults to white.
Text to use as the title of the generated page.
A list of knitr chunk options.