tests/testthat/_snaps/eval-bool.md

boolean operators throw relevant errors

Code
  # Unknown names
  select_loc(mtcars, foobar & contains("am"))
Condition
  Error in `select_loc()`:
  ! Can't select columns that don't exist.
  x Column `foobar` doesn't exist.
Code
  select_loc(mtcars, contains("am") | foobar)
Condition
  Error in `select_loc()`:
  ! Can't select columns that don't exist.
  x Column `foobar` doesn't exist.
Code
  # Empty intersection
  select_loc(mtcars, cyl & am)
Condition
  Error in `select_loc()`:
  ! Can't take the intersection of two columns.
  i `cyl & am` is always an empty selection.
Code
  # Symbol operands are evaluated in strict mode
  foo <- 1:2
  select_loc(iris, Species | foo)
Condition
  Error in `select_loc()`:
  ! Can't select columns that don't exist.
  x Column `foo` doesn't exist.


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