[R] how do you know which functions are being debugged?
xieyihui at gmail.com
Fri Oct 23 20:12:27 CEST 2009
Oops... I forgot to mention that 'envir' (or 'pos') should be
specified in ls()/get() in my last reply if you are looking for
debugged functions in environments other than ".GlobalEnv".
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA
On Fri, Oct 23, 2009 at 1:02 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> On 10/23/2009 1:28 PM, Andrew Yee wrote:
>> This is kind of a dumb question: I know you can use isdebugged() to find
>> out if a specific function is flagged for debugging, but is there a way to
>> list all the functions that are flagged for debugging?
> No, R doesn't keep any master list, it sets a flag in each one. So you
> could iterate over all visible objects to find the ones that have the flag
> set (and this is quite slow, there are a lot of places to look), but there
> would always be the chance that one was hiding somewhere you didn't look.
> Duncan Murdoch
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help