Displaying 1 result from an estimated 1 matches for "traceonoff".
2014 Oct 02
3
debuggingState() analogous to tracingState() ?
...;> waste, and I was thinking of enhancing
>> >> tracingState() from a 1-argument to a 2-argument form.
>> >>
>> >> something like
>> >>
>> >> tracingState <- function(on = NULL, debug = on)
>> >> .Internal(traceOnOff(on, debug))
>> >>
>> >> but I don't see how to keep usages such as
>> >>
>> >> on <- tracingState(FALSE) # turn it off QUICKLY (via a .Internal)
>> >> if(on) {
>> >> on.exit(tracingState(TRUE)) # restore...