get assertion type
get_assertion_type(assertion)
assertion
assertion object (check assertr package for details)
assertr
character with id of assertion: "error", "success", "warning"