| 1 | # matches() complains about bad stringr pattern usage |
| 2 | |
| 3 | Code |
| 4 | matches(stringr::fixed("a"), perl = TRUE) |
| 5 | Condition |
| 6 | Error in `matches()`: |
| 7 | ! `perl` not supported when `match` is a stringr pattern. |
| 8 | Code |
| 9 | matches(stringr::fixed("a"), ignore.case = TRUE) |
| 10 | Condition |
| 11 | Error in `matches()`: |
| 12 | ! `ignore.case` not supported when `match` is a stringr pattern. |
| 13 | Code |
| 14 | matches(stringr::fixed(c("a", "b"))) |
| 15 | Condition |
| 16 | Error in `matches()`: |
| 17 | ! stringr patterns must be length 1. |
| 18 |