Learn R Programming

precommit (version 0.1.3)

call_and_capture: Make a call with system2() and capture the effects.

Description

Make a call with system2() and capture the effects.

Usage

call_and_capture(command, args, ...)

Arguments

command

The command to issue. A character string of length one.

args

The command line arguments.

...

Arguments passed to system2().

Value

A list with:

  • content of stderr

  • content of stdout

  • exit status