Description Usage Arguments Value
Unlike static image plots, the outputs of htmlwidgets dependencies also have
Javascript and CSS dependencies, which are not by default processed by knitr.
htmlwdigets_deps
provides a system to add the dependencies to a Jekyll
blog. Further details are available in the following blog post:
http://brendanrocks.com/htwmlwidgets-knitr-jekyll/.
1 2 3 | htmlwidgets_deps(a, knit_meta = knitr::knit_meta(),
lib_dir = "htmlwidgets_deps", includes_dir = "_includes/htmlwidgets/",
always = FALSE)
|
a |
The file path for the input file being knit |
knit_meta |
The dependencies object. |
lib_dir |
The directory where the htmlwidgets dependency source code can be found (e.g. JavaScript and CSS files) |
includes_dir |
The directory to add the HTML file to |
always |
Should dependency files always be produced, even if htmlwidgets are not being used? |
Used for it's side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.