search for: listdebug

Displaying 1 result from an estimated 1 matches for "listdebug".

Did you mean: list_debug
2001 Oct 09
0
RE: [R] List of functions with debug() and trace()
...bugging enabled. It can be used by: > f <- function() 1 > isdebug(f) [1] FALSE > debug(f) > isdebug(f) [1] TRUE Using this, it is simple construct a function that gets a list of current objects and uses isdebug to determine which are functions with debugging enabled: > listdebug <- function(envir=globalenv()) + { + test <- function(x) + { + fun <- get(x) + if(is.function(fun)) + return( isdebug(x) ) + else + return(FALSE) + } + + fnames <- objects(envir=envir) + flag <- sapp...