test_that("catf() works", {
f <- kwb.prep:::catf
expect_error(f())
expect_identical(capture.output(f("abc")), "abc")
expect_identical(capture.output(f("%s", "abc")), "abc")
expect_identical(capture.output(f("%d items", 10L)), "10 items")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.