If the prototype doesn't match, an error of class "error_assert_ptype" is raised. If the prototype doesn't match, an error of class "error_assert_size" is raised. Both errors inherit from "error_assert".

vec_assert(x, ptype = NULL, size = NULL)

## Arguments

x A vector argument to check. Prototype to compare against. Size to compare against

## Value

Either an error of class "error_assert", or x, invisibly.