Re: [Rd] Difficult debug - follow-up

2024-02-19 Thread Therneau, Terry M., Ph.D. via R-devel
I want to thank Ivan and Bill for useful advice.   I eventually found my memory mistake, which was of the 'obvious once you see it' variety.  Ivan's note that it appeared to be in a small allocation was correct. >   I've hit a roadblock debugging a new update to the survival package. I do > de

[Rd] Suggestion: simplify trace() interface

2024-02-19 Thread Duncan Murdoch
The trace() function is very nice for setting breakpoints or other debugging code in functions and methods, but its interface is confusingly complicated. For example, there was a question on StackOverflow recently that led to this observation: trace(stats::predict.lm, edit = TRUE) will a