test_that("function", {
rlang::scoped_options(lifecycle_verbosity = "quiet")
expect_identical(check_function(character), character)
expect_error(check_function(character()), "character[(][)] must be a function")
expect_error(check_function(character, nargs = 0L), "character must have 0 arguments")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.