with_sink | R Documentation |
Temporarily divert output to a file via sink()
. For
sinks of type message
, an error is raised if such a sink is already
active.
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())
new |
|
code |
|
append |
logical. If |
split |
logical: if |
.local_envir |
|
[any]
The results of the evaluation of the code
argument.
withr
for examples
sink()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.