assert_is_list(x, severity = getOption("assertive.severity", "stop")) is_list(x, .xname = get_name_in_parent(x))
"stop"
"warning"
"message"
"none"
is_list
is.list
assert_is_list(list(1,2,3)) #These examples should fail. assertive.base::dont_stop(assert_is_list(1:10))
Run the code above in your browser using DataCamp Workspace