expect_printed_output <- function(object, update = FALSE) {
file <- rlang::quo_text(rlang::enquo(object))
testthat::expect_known_output(
object, paste0("ref-", file),
print = TRUE, update = update
)
invisible(object)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.