with_sink {withr} | R Documentation |
Output redirection
Description
Temporarily divert output to a file via sink()
. For
sinks of type message
, an error is raised if such a sink is already
active.
Usage
with_output_sink(new, code, append = FALSE, split = FALSE)
local_output_sink(
new = list(),
append = FALSE,
split = FALSE,
.local_envir = parent.frame()
)
with_message_sink(new, code, append = FALSE)
local_message_sink(new = list(), append = FALSE, .local_envir = parent.frame())
Arguments
new |
|
code |
|
append |
logical. If |
split |
logical: if |
.local_envir |
|
Value
[any]
The results of the evaluation of the code
argument.
See Also
withr
for examples
[Package withr version 3.0.0 Index]