.rxWithSink {rxode2} | R Documentation |
With one sink, then release
Description
With one sink, then release
Usage
.rxWithSink(file, code)
.rxWithSinkBoth(file, code)
Arguments
file |
the path to the file sink while running the |
code |
The code to run during the sink |
Details
.rxWithSink
captures output from cat
.rxWithSinkBoth
captures output from cat
and message
Value
Will return the results of the code
section
Author(s)
Matthew Fidler
Examples
t <- tempfile()
.rxWithSink(t, cat("message\n"))
cat("cat2\n") # now you can see the cat2
lines <- readLines(t)
unlink(t)
[Package rxode2 version 3.0.2 Index]