If a function named is.class exists, call is.class(x).
If not, call is(x, class).
is2(x, class, .xname = get_name_in_parent(x))
Input to check.
Target class that x maybe belong to.
Not intended to be used directly.
TRUE if x belongs to the class and FALSE
assert_is_all_of for the corresponding assert fns.
is2(1:5, c("character", "list", "numeric"))
is2(mean, c("function", "data.frame"))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.