Validates a vector by checking its length (number of elements).
## Static method (use this):
## Arguments$getVector(x, length=NULL, .name=NULL, ...)## Don't use the below:
# S3 method for Arguments
getVector(static, x, length=NULL, .name=NULL, ...)
A single vector
.
A character
string for name used in error messages.
Not used.
Returns the same vector
, if it is valid. Otherwise an exception is
thrown.
For more information see Arguments
.