vec_assert {vctrs} | R Documentation |
Assert an argument has known prototype and/or size
vec_assert(x, ptype = NULL, size = NULL)
x |
A vector argument to check. |
ptype |
Prototype to compare against. |
size |
Size to compare against |
Either an error, or x
, invisibly.