test_that("output", {
expect_identical(format(utf8(c("a", "bc"))), c("a ", "bc"))
})
test_that("print", {
expect_snapshot({
print(utf8(c("a", "bc")))
})
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.