Code
(expect_error(one_of(1L, .vars = c("x", "y")), class = "vctrs_error_incompatible_index_type")
)
Output
<error/vctrs_error_incompatible_index_type>
Error in `one_of()`:
! Input 1 must be a vector of column names, not an integer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.