test_that("name", {
rlang::scoped_options(lifecycle_verbosity = "quiet")
vec <- c("x", "x.y")
expect_identical(check_name(vec), vec)
vec <- c("x", "x y")
expect_error(check_name(vec), "the following 1 value of vec is invalid: 'x y'")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.