[ESS] Debugging in R
Martin Maechler
maechler at stat.math.ethz.ch
Fri Jun 24 10:19:11 CEST 2005
Thank you, Kasper,
>>>>> "Kasper" == Kasper Daniel Hansen <kaha at biostat.ku.dk>
>>>>> on Fri, 24 Jun 2005 04:40:39 +0200 (CEST) writes:
Kasper> .....
Kasper> For my case, everything I have tried works fine. And
Kasper> I am positive that options(error = recover) works
Kasper> fine.
yes and no.
It works fine for its own purpose, but it does "hang" part of
the "interactivity" of ESS, e.g., C-c C-v (display-help..) or
"object name completion" {you "only" need 'C-g' to interrupt
the hanging ESS here}.
I've also only recently persuaded myself that this needs to be
dealt with --- and probably rather sooner than later.
Martin
Kasper> Have you set you editor to something strange? I get
>> getOption("editor")
Kasper> [1] "emacsclient"
(yes, that's a good setting and you should get it as default,
at least in GNU emacs)
Kasper> Kasper
Kasper> 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
>>
Kasper> ______________________________________________
Kasper> ESS-help at stat.math.ethz.ch mailing list
Kasper> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list