test_that("stopper works", {
msg <- "You have encountered an error"
testthat::expect_error(stopper(msg = msg))
testthat::expect_error(stopper(msg = msg, v=FALSE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.