test_that("is_interactive() | general test", {
expect_equal(is_interactive(), interactive())
})
test_that("require_namespace() | general test", {
expect_equal(require_namespace(
"base"
),
requireNamespace("base", quietly = TRUE)
)
})
test_that("read_line() | general test", {
expect_equal(read_line(""), "")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.