context("Errors")
test_that("errors are reported through scoped handler", {
output <- capture.output(
tryCatch(stop("ouch"), error = renv_error_handler),
type = "message"
)
expect_true(length(output) > 0)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.