assertLengths: This function turns checkLength into an assertion function.

Description Usage Arguments Value

Description

This function turns checkLength into an assertion function.

Usage

1
assertLengths(x, .var.name = vname(x), add = NULL)

Arguments

x

Object to check.

.var.name

Optional name for x to overide default.

add

Name of an assertion collection to add to.

Value

If successful, the original value, if not an error message.


colinorourke/simpower documentation built on May 21, 2019, 1:42 a.m.