Run a system command and capture the output.
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, ... )
cmd |
the command to run. |
args |
a vector of command arguments. |
env |
a named character vector of environment variables. Will be quoted |
quiet |
if |
echo |
if |
... |
additional arguments passed to |
command output if the command succeeds, an error will be thrown if the command fails.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.