tests/testthat/test-name.R

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'")
})
poissonconsulting/checkr documentation built on Oct. 18, 2023, 9:39 p.m.