write_widget_deps | R Documentation |
Writes an HTML widget's JS and CSS dependencies to files and returns a snippet for their inclusion in the <head>
of an HTML document.
write_widget_deps(
x,
path,
path_base,
path_head_snippet = NULL,
quiet = !is.null(path_head_snippet)
)
x |
HTML widget object. |
path |
Directory path to write the HTML widget's dependencies to. A subfolder will be created for each dependency. |
path_base |
Base path to determine the relative root of |
path_head_snippet |
Optional file path to write the snippet for inclusion of the widget's dependencies in the |
quiet |
Whether or not to print the snippet for inclusion of the widget's dependencies to console. |
To write the HTML widget's core tags to file, use write_widget()
.
An HTML object suitable for inclusion in the <head>
of an HTML document, invisibly.
Other HTML widget functions:
write_widget()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.