is_null_or_true: Is an Object 'TRUE' or 'NULL'?

View source: R/boolean.R

is_null_or_trueR Documentation

Is an Object TRUE or NULL?

Description

Is an object TRUE or NULL?

Usage

is_null_or_true(x)

Arguments

x

The object to be tested.

Value

TRUE if the object is set to TRUE or NULL, FALSE otherwise.

See Also

Other logical helpers: get_run_r_tests(), is_batch(), is_cran(), is_false(), is_force(), is_installed(), is_not_false(), is_of_length_zero(), is_r_cmd_check(), is_r_package_installed(), is_running_on_fvafrcu_machines(), is_running_on_gitlab_com(), is_success(), is_version_sufficient(), is_windows()

Examples

is_null_or_true("true") # FALSE
is_null_or_true(TRUE) # TRUE
is_null_or_true(NULL) # TRUE
suppressWarnings(rm("not_defined"))
try(is_null_or_true(not_defined)) # error

fritools documentation built on Nov. 19, 2023, 1:06 a.m.