robust_system_check: Print the data captured by robust_system() and stop if...

View source: R/system_calls.R

robust_system_checkR Documentation

Print the data captured by robust_system() and stop if nonzero exit code

Description

Print the data captured by robust_system() and stop if nonzero exit code

Usage

robust_system_check(
  robust_list = NULL,
  name = deparse(substitute(robust_list))
)

Arguments

robust_list

[Required] List object that is returned by the [robust_system()] function.

name

[Optional. Default: name of 'robust_list' object] String that provides a name for the system call captured in the 'robust_list'.

Value

This function prints the contents of the 'robust_list' in a nice way, directly to stderr and stdout streams. It also checks the exit code and will 'stop()' if not zero.

See Also

[robust_system()]

Examples

robust_system_check(robust_list)


toddknutson/toddr documentation built on Aug. 28, 2023, 2:45 a.m.