test_that("null pipe will shortcut evaluation", {
expect_equal("a" %||% stop("error"), "a")
expect_error(NULL %||% stop("this is an error"), "this is an error")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.