R: With one sink, then release

.rxWithSink {RxODE} | R 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)

[Package RxODE version 1.1.2 Index]