system_output: Run a system command and capture the output.

Description Usage Arguments Value

Description

This function automatically quotes both the command and each argument so they are properly protected from shell expansion.

Usage

1
2
system_output(cmd, args = character(), env = character(), quiet = FALSE,
  echo = FALSE, ...)

Arguments

cmd

the command to run.

args

a vector of command arguments.

env

a named character vector of environment variables. Will be quoted

quiet

if TRUE, the command output will be echoed.

echo

if TRUE, the command to run will be echoed.

...

additional arguments passed to system

Value

command output if the command succeeds, an error will be thrown if the command fails.



Search within the covr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.