This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: tree.
browser(object, ...)
When the browser is called with an integer argument, or no argument, it has direct access to a frame in the evaluator. Assignments and replacements have a lasting effect in that frame after the browser exits. This allows interactive change to the behavior of a function; be sure that is what you mean if you do assignments under these conditions. Note that read-only access to a frame in the evaluator is obtained by browser(sys.frame(n)) which invokes the browser on a copy of the n-th frame. For further details and explicit control of this feature, see browser.default.
trace(foo, browser)options(interrupt=browser)
myfun <- function(x,y) { # lots of computing browser() #now check things just before the moment of truth .C("myroutine",x,y,w) }