expect_output <- function(expr, value, ..., positive = TRUE) {
output <- paste(capture.output(expr), collapse = "\n")
matches <- grepl(value, output, ...)
if (isTRUE(positive)) {
expect_true(matches)
} else {
expect_false(matches)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.