[ESS] Debugging in R

Kasper Daniel Hansen kaha at biostat.ku.dk
Fri Jun 24 04:40:39 CEST 2005

I do not really follow this. There are two basic ways to do debugging as I 
understand it. One is to use the debug package, which I have no expeience 
with, and the other is to use the build in R commands.

For my case, everything I have tried works fine. And I am positive that 
options(error = recover) works fine.

Have you set you editor to something strange? I get
  > getOption("editor")
  [1] "emacsclient"


On Thu, 23 Jun 2005, Ross Boylan wrote:

> Using ESS for R doesn't yield very helpful errors (error message only;
> no stack trace; no indication of the source line even if C-c C-l), and
> recover() is not invoked (apparently it is not on by default in R).
> I did options(error=recover), and discovered why that was off under ESS,
> at least.  The session hung completely.  I assume the process running R
> didn't know where to get or send input (which is a bit weird, since
> that's what I do in regular interaction).
> I switched to running R from a terminal for diagnosis, but I hope
> there's a better way.
> The info file seems to be more about debugging problems with ESS.  I'm
> concerned with problems in my code or data.
> The only index entry for debugging just had stuff about interactively
> evaluating code snippets.  A search of the index file also turned up a
> variable that could be set.  This looked as if it might be more for
> debugging ESS, and it gave a backtrace.  Even if that's of the R code,
> it still doesn't put me in an interactive debugging environment.
> Thanks.
> P.S.  Is there any good way to search the list archives?
> -- 
> Ross Boylan                                      wk:  (415) 502-4031
> 530 Parnassus Avenue (Library) rm 115-4          ross at biostat.ucsf.edu
> Dept of Epidemiology and Biostatistics           fax: (415) 476-9856
> University of California, San Francisco
> San Francisco, CA 94143-0840                     hm:  (415) 550-1062
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

More information about the ESS-help mailing list