test_that("splitIntoLines() works", {
f <- kwb.utils:::splitIntoLines
expect_error(f())
expect_error(f(1))
expect_error(f(c("abc", "def")))
expect_identical(f("a\nb"), c("a", "b"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.