chk_is_logical_flag: Check that 'x' is a non-NA logical vector of length 1

Description Usage Arguments Examples

View source: R/chk-composite.R

Description

Check that 'x' is a non-NA logical vector of length 1

Usage

1
2
3

Arguments

x

A scalar.

name

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

Examples

1
2
x <- TRUE
chk_is_logical_flag(x, name = "x")

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