| is_null_or_true | R Documentation |
TRUE or NULL?Is an object TRUE or NULL?
is_null_or_true(x)
x |
The object to be tested. |
TRUE if the object is set to
TRUE or NULL,
FALSE
otherwise.
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_scalar(),
is_scalar_convertible2numeric(),
is_success(),
is_true(),
is_version_sufficient(),
is_windows()
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.