chk_false: Check FALSE

Description Usage Arguments Value Functions See Also Examples

View source: R/chk-false.R

Description

Check if FALSE using

is.logical(x) && length(x) == 1L && !anyNA(x) && !x

Usage

1
2
3
chk_false(x, x_name = NULL)

vld_false(x)

Arguments

x

The object to check.

x_name

A string of the name of object x or NULL.

Value

The chk_ function throws an informative error if the test fails.

The vld_ function returns a flag indicating whether the test was met.

Functions

See Also

Other chk_logical: chk_flag(), chk_lgl(), chk_true()

Examples

1
2
3
4
5
6
7
8
9

chk documentation built on July 25, 2020, 9:07 a.m.