capture_output {unitizer} | R Documentation |
Will sink both "output" and "message" streams without checking whether they are already sunk, and will unsink them the same way.
capture_output(expr, env = parent.frame())
## S3 method for class 'captured_output'
print(x, ...)
expr |
a quoted expression to evaluate |
env |
an environment to evaluate them in |
a list with stdout and stderr captured separately, classed as "captured_output"