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.


Try the tidyselect package in your browser

Any scripts or data that you put into this service are public.

tidyselect documentation built on May 29, 2024, 6:07 a.m.