chk_positive_dim: Check a 'dim' argument for an array with positive length

Description Usage Arguments See Also Examples

View source: R/chk-composite.R

Description

Check that x is a valid dim argument for an array in which all dimensions have length greater than 0.

Usage

1
2
3

Arguments

x

An integer vector.

name

The name for x that will be used in error messages.

See Also

chk_pos_initial

Examples

1
2
chk_positive_dim(x = c(2L, 1L, 3L),
                 name = "x")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.