oceDebug(debug=0, ...)
cat
, which does the
printing. Almost always, this should include a trailing newline.debug
=4 or
higher, 6 for debug
=3, 4 for debug
=2, and 2 for
debug
=1. Normally, functions decrease the debug
level
by 1 when they call other functions, so the effect is a nesting, with
more space for deeper function level.foo <- function(debug)
{
oceDebug(debug, "in function foo
")
}
debug <- 1
oceDebug(debug, "in main")
foo(debug=debug-1)
Run the code above in your browser using DataLab