test_that("printComment", {
out <- capture.output({
printComment(c("hello", "world"))
})
expect_identical(
object = out,
expected = "## [1] \"hello\" \"world\""
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.