dot-rxWithSink: With one sink, then release

.rxWithSinkR Documentation

With one sink, then release

Description

With one sink, then release

Usage

.rxWithSink(file, code)

Arguments

file

the path to the file sink while running the code

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)

RxODE documentation built on March 23, 2022, 9:06 a.m.