g2Dependency <- function() {
htmlDependency(
name = "g2",
version = "3.0.3",
src = system.file("www", "g2", package = "golly"),
script = "g2.min.js"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.