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

View source: R/call.R

call_and_captureR Documentation

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, ..., wait = TRUE)

Arguments

command

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

args

The command line arguments.

...

Arguments passed to system2().

wait

Passed to system2().

Value

A list with:

  • content of stderr

  • content of stdout

  • exit status


precommit documentation built on July 2, 2022, 1:06 a.m.