This function automatically quotes both the command and each argument so they are properly protected from shell expansion.
system_output(cmd, args = character(), env = character(), quiet = FALSE,
echo = FALSE, ...)
the command to run.
a vector of command arguments.
a named character vector of environment variables. Will be quoted
if TRUE
, the command output will be echoed.
if TRUE
, the command to run will be echoed.
additional arguments passed to system
command output if the command succeeds, an error will be thrown if the command fails.