empty
Code
(expect_error(is_string2("foo", empty = 1)))
Output
<error/rlang_error>
Error in `is_string2()`:
! `empty` must be `NULL` or a logical value.
Code
(expect_error(is_string2("foo", empty = NA)))
Output
<error/rlang_error>
Error in `is_string2()`:
! `empty` must be `NULL` or a logical value.
Code
(expect_error(is_string2("foo", "foo", empty = TRUE)))
Output
<error/rlang_error>
Error in `is_string2()`:
! Exactly one of `string` and `empty` must be supplied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.