ezSystem: Invokes a system command

View source: R/system.R

ezSystemR Documentation

Invokes a system command

Description

Invokes the system command specified by cmd.

Usage

ezSystem(cmd, echo = TRUE, intern = FALSE, stopOnFailure = !intern, ...)

Arguments

cmd

a system command input as a character.

echo

a logical defining whether cmd should be written by ezWrite.

intern

a logical which indicates whether to capture the output of the command as an R character vector.

stopOnFailure

defaults to the opposite of intern and specifies whether the command should stop.

...

additional arguments to be passed to system().

Value

Returns input as character vector if echo is set to TRUE. Returns an error code if intern is set to FALSE.

Author(s)

Rehrauer, Hubert

Schmid, Peter

See Also

system

Examples

try(ezSystem("who"))

uzh/ezRun documentation built on April 24, 2024, 4:01 p.m.