R/types.R
is_true.Rd
These functions bypass R's automatic conversion rules and check that x is literally TRUE or FALSE.
x
TRUE
FALSE
is_true(x) is_false(x)
object to test
is_true(TRUE) #> [1] TRUE is_true(1) #> [1] FALSE is_false(FALSE) #> [1] TRUE is_false(0) #> [1] FALSE