.rxWithSink | R Documentation |
With one sink, then release
.rxWithSink(file, code)
file |
the path to the file sink while running the |
code |
The code to run during the sink |
.rxWithSink
captures output from cat
.rxWithSinkBoth
captures output from cat
and message
Will return the results of the code
section
Matthew Fidler
t <- tempfile() .rxWithSink(t, cat("message\n")) cat("cat2\n") # now you can see the cat2 lines <- readLines(t) unlink(t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.