| 1 | # boolean operators throw relevant errors |
| 2 | |
| 3 | Code |
| 4 | # Unknown names |
| 5 | select_loc(mtcars, foobar & contains("am")) |
| 6 | Condition |
| 7 | Error in `select_loc()`: |
| 8 | ! Can't select columns that don't exist. |
| 9 | x Column `foobar` doesn't exist. |
| 10 | Code |
| 11 | select_loc(mtcars, contains("am") | foobar) |
| 12 | Condition |
| 13 | Error in `select_loc()`: |
| 14 | ! Can't select columns that don't exist. |
| 15 | x Column `foobar` doesn't exist. |
| 16 | Code |
| 17 | # Empty intersection |
| 18 | select_loc(mtcars, cyl & am) |
| 19 | Condition |
| 20 | Error in `select_loc()`: |
| 21 | ! Can't take the intersection of two columns. |
| 22 | i `cyl & am` is always an empty selection. |
| 23 | Code |
| 24 | # Symbol operands are evaluated in strict mode |
| 25 | foo <- 1:2 |
| 26 | select_loc(iris, Species | foo) |
| 27 | Condition |
| 28 | Error in `select_loc()`: |
| 29 | ! Can't select columns that don't exist. |
| 30 | x Column `foo` doesn't exist. |
| 31 |