capture.output.both | R Documentation |
Adaptation of utils::capture.output()
to enable capture of both output and messages
capture.output.both(
...,
file = NULL,
append = FALSE,
type = c("both", "output", "message"),
split = FALSE
)
... |
Expressions to be evaluated |
file |
A file name or a connection, or NULL to return the output as a character vector. If the connection is not open, it will be opened initially and closed on exit. |
append |
logical. If file a file name or unopened connection, append or overwrite? |
type |
is passed to sink, see there (but |
split |
is passed to sink, see there |
A character string (if file = NULL), or invisible NULL
See utils::capture.output()
for detailed description. The current function allows type='both'
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.