capture_output: Capture Both StdOut and StdErr

View source: R/text.R

capture_outputR Documentation

Capture Both StdOut and StdErr

Description

Will sink both "output" and "message" streams without checking whether they are already sunk, and will unsink them the same way.

Usage

capture_output(expr, env = parent.frame())

## S3 method for class 'captured_output'
print(x, ...)

Arguments

expr

a quoted expression to evaluate

env

an environment to evaluate them in

Value

a list with stdout and stderr captured separately, classed as "captured_output"


unitizer documentation built on Oct. 8, 2023, 5:06 p.m.