is_success: Does the Return Value of a Command Signal Success?

View source: R/is_success.R

is_successR Documentation

Does the Return Value of a Command Signal Success?

Description

This is just a wrapper to ease the evaluation of return values from external commands: External commands return 0 on success, which is FALSE, when converted to logical.

Usage

is_success(x)

Arguments

x

The external commands return value.

Value

TRUE on success, 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_null_or_true(), is_of_length_zero(), is_r_cmd_check(), is_r_package_installed(), is_running_on_fvafrcu_machines(), is_running_on_gitlab_com(), is_version_sufficient(), is_windows()

Other operating system functions: clipboard_path(), file_copy(), file_save(), get_boolean_envvar(), get_run_r_tests(), is_installed(), is_r_package_installed(), is_windows(), view(), vim(), wipe_tempdir(), with_dir()

Examples

is_success(0)
is_success(1)
is_success(-1)

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