# is_string2() matches on `empty` Code (expect_error(is_string2("foo", empty = 1))) Output Error in `is_string2()`: ! `empty` must be `NULL` or a logical value. Code (expect_error(is_string2("foo", empty = NA))) Output Error in `is_string2()`: ! `empty` must be `NULL` or a logical value. Code (expect_error(is_string2("foo", "foo", empty = TRUE))) Output Error in `is_string2()`: ! Exactly one of `string` and `empty` must be supplied.