context("themes")
test_that("themes are correct", {
testthat::skip_on_cran()
testthat::skip_on_appveyor()
testthat::skip_on_travis()
df <- data.frame(x = 1:3, y = 1:3, z = c("a", "b", "a"), a = 1)
plot <- ggplot(df, aes(x, y, colour = z)) +
geom_point() +
facet_wrap(~ a)
vdiffr::expect_doppelganger("theme_premium", plot + theme_premium())
vdiffr::expect_doppelganger("theme_premium_rc", plot + theme_premium_rc())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.