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

Description Slots Author(s) See Also Examples

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.

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

Author(s)

MT Morgan <mtmorgan@fhcrc.org>

See Also

link{sinkSetup}, sinkRetrieve

Examples

1
2
3
4
5
6
7
8
library(RWebServices)

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

RWebServices documentation built on Oct. 5, 2016, 4:53 a.m.