context("figasaur")
test_that("recover plot code", {
dest <- tempfile("testpng", fileext = ".png")
figasaur(plot(sample(100)), dest)
expect_match(decode(dest), "plot(sample(100))",
fixed = TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.