powered by
assert_is_S4(x) is_S4(x, .xname = get_name_in_parent(x))
is_S4
isS4
assert_is_S4
FALSE
assert_is_S4(getClass("MethodDefinition")) #These examples should fail. assert_is_S4(1:10)
Run the code above in your browser using DataLab