Learn R Programming

RxODE (version 1.1.5)

.rxWithSink: 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

Value

Will return the results of the code section

Details

.rxWithSink captures output from cat

.rxWithSinkBoth captures output from cat and message

Examples

Run this code
# NOT RUN {
t <- tempfile()
.rxWithSink(t, cat("message\n"))
cat("cat2\n") # now you can see the cat2
lines <- readLines(t)
unlink(t)
# }

Run the code above in your browser using DataLab