RWebServices (version 1.36.0)

SinkOutput-class: Results captured by calls to sinkSetup and sinkRetrieve

Description

Create this class using sinkSetup and sinkRetrieve. A typical use is to wrap function evalutation calls in such a way as to redirect screen output to character variables.

Arguments

Slots

stdout
Vector of type character containg each line of output destined for the 'console', excepting error and warning messages. Each element in the vector is a 'line' of string output, as determined by R.
stderr:
As with stdout, but captureing warning and error messages

See Also

link{sinkSetup}, sinkRetrieve

Examples

Run this code
library(RWebServices)

sinkSetup()
ls()
try( fails())
f <- function() stop("fails in function f")
try( f())
sinkRetrieve()

Run the code above in your browser using DataLab