context("test-utils")
test_that("require arguments", {
x <- "text"
expect_silent(check_required_args(x, "character"))
expect_error(check_required_args(x, "numeric"))
expect_error(check_required_args(x, "a"))
expect_error(check_required_args(1L, "data.frame"))
expect_error(check_required_args(type = "list"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.