test_that("checks its inputs", {
pkg <- local_pkgdown_site(test_path("assets/articles-images"))
expect_snapshot(error = TRUE, {
preview_site(pkg, path = 1)
preview_site(pkg, preview = 1)
})
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.