is2(1:5, "character")
is2(matrix(1:5), "character")
is2(1:5, c("character", "list", "numeric"))
assert_is_all_of(1:10, c("integer", "numeric"))
#These examples should fail.
dont_stop(assert_is_any_of(1:10, c("list", "data.frame")))
Run the code above in your browser using DataLab