test_that("function", {
rlang::scoped_options(lifecycle_verbosity = "quiet")
expect_error(check_environment(1), "1 must be an environment")
expect_identical(check_environment(.GlobalEnv), .GlobalEnv)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.