context("knit")
source("utils.R")
test_succeeds("r2d3 can knit visualizations", {
skip_on_cran()
if (!rmarkdown::pandoc_available())
skip("rmarkdown requires pandoc")
output <- tempfile(fileext = ".html")
rmarkdown::render("barchart.Rmd", output_file = output)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.