x is a vector (and is not a list or another recursive type)

assert_vector(
  x,
  message = "%s must be a non-recursive vector",
  name = deparse(substitute(x))
)

Arguments

x

Value to check if vector and not recursive

message

Message to output if x not a non-recursive vector

name

Name

Details

x is a vector (and is not a list or another recursive type)