Skip to contents

Check A Boolean Value

Usage

check_is_logical(x)

Arguments

x

Input value

Value

A stop error if the value is not a Boolean value

Examples

if (FALSE) { # \dontrun{
check_is_logical(x = "text")
check_is_logical(x = TRUE)
} # }