| is_null_or_true {fritools2} | R Documentation |
Is an Object TRUE or NULL?
Description
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
[Package fritools2 version 4.1.0 Index]