
Last chance! 50% off unlimited learning
Sale ends in
Assert an argument has known prototype and/or size
vec_assert(x, ptype = NULL, size = NULL)
A vector argument to check.
Prototype to compare against.
Size to compare against
Either an error, or x
, invisibly.