htmlwidgets_deps: Configure htmlwidgets dependencies for a knitr-jekyll blog

Description Usage Arguments Value

Description

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/.

Usage

1
2
3
htmlwidgets_deps(a, knit_meta = knitr::knit_meta(),
  lib_dir = "htmlwidgets_deps", includes_dir = "_includes/htmlwidgets/",
  always = FALSE)

Arguments

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?

Value

Used for it's side effects.


brendan-r/brocks documentation built on May 13, 2019, 5:08 a.m.