File: helpers-pattern.md

package info (click to toggle)
r-cran-tidyselect 1.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 616 kB
  • sloc: sh: 13; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# matches() complains about bad stringr pattern usage

    Code
      matches(stringr::fixed("a"), perl = TRUE)
    Condition
      Error in `matches()`:
      ! `perl` not supported when `match` is a stringr pattern.
    Code
      matches(stringr::fixed("a"), ignore.case = TRUE)
    Condition
      Error in `matches()`:
      ! `ignore.case` not supported when `match` is a stringr pattern.
    Code
      matches(stringr::fixed(c("a", "b")))
    Condition
      Error in `matches()`:
      ! stringr patterns must be length 1.