is_true: Is object identical to TRUE or FALSE?

View source: R/types.R

is_trueR Documentation

Is object identical to TRUE or FALSE?

Description

These functions bypass R's automatic conversion rules and check that x is literally TRUE or FALSE.

Usage

is_true(x)

is_false(x)

Arguments

x

object to test

Examples

is_true(TRUE)
is_true(1)

is_false(FALSE)
is_false(0)

r-lib/rlang documentation built on June 24, 2024, 8:09 p.m.