View source: R/cdnify_plotly.R
cdnify_plotly | R Documentation |
This function replaces dependencies in plotly
.html pages generated using htmlwidgets::saveWidget()
.
cdnify_plotly(filename, libdir = sub(".html$", "_files", filename))
filename |
.html file to CDNify. |
libdir |
Directory containing dependencies (defaults to filename_files). |
The page must have been saved with selfcontained = FALSE
in the
call to htmlwidgets::saveWidget()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.