check_ggplot_fig <- function(ptitle, p) {
if (testthat:::on_ci()) {
testthat::expect_true(is(p, "ggplot"))
} else {
vdiffr::expect_doppelganger(ptitle, p)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.