With one sink, then release
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.