assert_logical: Assert that an object is a logical vector

Description Usage Arguments Details Value

View source: R/assertions.R

Description

The assertion will succeed for vectors containing combinations of TRUE, FALSE, and NA. The vector or vector elements can have attributes.

Usage

1

Arguments

x

Object to check

Details

The assertion will succeed for vectors containing combinations of TRUE, FALSE, and NA. The vector may have attributes and/or have length zero.

Value

If the check is successful x will be returned invisibly. If the check is not successful an error will be thrown.


armcn/pure documentation built on Dec. 30, 2021, 12:16 a.m.