Code
. <- regex(x)
Condition
Warning in `regex()`:
Coercing `pattern` to a plain character vector.
Code
. <- coll(x)
Condition
Warning in `coll()`:
Coercing `pattern` to a plain character vector.
Code
. <- fixed(x)
Condition
Warning in `fixed()`:
Coercing `pattern` to a plain character vector.
Code
type(1:3)
Condition
Error:
! `pattern` must be a character vector, not an integer vector.
Code
type(NA)
Condition
Error:
! `pattern` must be a character vector, not `NA`.
Code
type(c("a", "b", NA_character_, "c"))
Condition
Error:
! `pattern` must be a character vector that does not contain NAs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.