Run a system command and capture the output.
system_output(cmd, args = character(), env_vars = character(),
path = ".", quiet = FALSE, ...)
Command to run. Will be quoted by shQuote()
.
A character vector of arguments.
A named character vector of environment variables.
Path in which to execute the command
If FALSE
, the command to be run will be echoed.
additional arguments passed to base::system()
command output if the command succeeds, an error will be thrown if the command fails.