debug2: Debug a function, controlled by a boolean

Description Usage Arguments Value Author(s) See Also

Description

The standard debug function works great, but this function lets you turn debuging on and off via a logical global parameter, meaning no more code commenting

Usage

1
debug2(fun, text = "", condition = NULL, doit = interactive())

Arguments

fun

any interpreted R function. see debug

text

a text string that can be retrieved when the browser is entered. see debug

condition

a condition that can be retrieved when the browser is entered. see debug

doit

logical: if TRUE, then debugging mode will be entered, if FALSE, no debugging will occur. Default=TRUE if running an interactive session.

Value

nothing

Author(s)

Mark Cowley, 2011-08-12

See Also

debug


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.