Directs the output from the debugger.
Identifies the stream where the debugging information is sent: stderr()
, stdout()
, or a file name.
This example turns on debugging mode and sends the debugging information to stderr
. The orch.dbg.output
function returns a description of stderr
.
R> orch.dbg.on('all') R> err<-orch.dbg.output(stderr()) 17:32:11 [SY] debug output set to "stderr" R> print(err) description class mode text opened can read can write "stderr" "terminal" "w" "text" "opened" "no" "yes"
The next example redirects the output to a file named debug.log:
R> err<-orch.dbg.output('debug.log') 17:37:45 [SY] debug output set to "debug.log" R> print(err) [1] "debug.log"