View source: R/capture.output.R
capture.output | R Documentation |
Argument type
has been backported.
See the original description in utils::capture.output
.
capture.output( ..., file = NULL, append = FALSE, type = c("output", "message"), split = FALSE )
# get function from namespace instead of possibly getting # implementation shipped with recent R versions: bp_capture.output <- getFromNamespace("capture.output", "backports") captured <- bp_capture.output({ message("hi") }, type = "message") str(captured)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.