tests/testthat/_snaps/helpers.md

one_of gives useful errors

Code
  (expect_error(one_of(1L, .vars = c("x", "y")), class = "vctrs_error_incompatible_index_type")
  )
Output
  <error/vctrs_error_incompatible_index_type>
  Error in `one_of()`:
  ! Input 1 must be a vector of column names, not an integer.


lionel-/selectr documentation built on March 14, 2024, 10:04 p.m.