Create HTML dependencies for D3 and optional extensions
html_dependencies_d3(version = c("5", "4", "3"), extensions = NULL)
Major version of D3
D3 extensions to include. Currently the only supported extension is "jetpack" (https://github.com/gka/d3-jetpack).
Create list of HTML dependencies for D3. Each version has
a distinct root D3 object so it's possible to combine multiple versions
of D3 on a single page. For example, D3 v5 is accessed via
D3 v4 is accessed via
d3v4. Note however that D3 v3 is accessed via
d3 (for compabibilty with existing htmlwidgets that use
This function is exported for use by htmlwidgets. If you are
r2d3() function to include D3 code within a document
or application this dependency is included automatically so calling
this function is unnecessary.