Re: [R] debug an error that incapacitates R?

2009-12-14 Thread Brian Diggs
-Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: Sunday, December 13, 2009 4:05 AM To: Duncan Murdoch Cc: r-help@r-project.org Help Subject: Re: [R] debug an error that incapacitates R? Hello And thank you for the quick answer. On 12/13/09, Duncan

Re: [R] debug an error that incapacitates R?

2009-12-14 Thread Rolf Turner
Murdoch Cc: r-help@r-project.org Help Subject: Re: [R] debug an error that incapacitates R? Hello And thank you for the quick answer. On 12/13/09, Duncan Murdoch murd...@stats.uwo.ca wrote: I think you need to go back to old-fashioned debugging methods. Identify the line the triggers the error

Re: [R] debug an error that incapacitates R?

2009-12-14 Thread Brian Diggs
-Original Message- From: Rolf Turner [mailto:r.tur...@auckland.ac.nz] Sent: Monday, December 14, 2009 2:07 PM To: Brian Diggs Cc: r-help@r-project.org Help Subject: Re: [R] debug an error that incapacitates R? Wouldn't sink.number() give you a handle on whether the problem

[R] debug an error that incapacitates R?

2009-12-13 Thread Liviu Andronic
Dear all How should I attempt debugging this error? sosInit() Error: invalid connection When this happens R refuses to run anything: 2+2 Error: invalid connection sessionInfo () Error in stdout() : invalid connection Debugging it seems impossible. options(error=recover) sosInit() Error:

Re: [R] debug an error that incapacitates R?

2009-12-13 Thread Duncan Murdoch
On 13/12/2009 5:31 AM, Liviu Andronic wrote: Dear all How should I attempt debugging this error? sosInit() Error: invalid connection When this happens R refuses to run anything: 2+2 Error: invalid connection sessionInfo () Error in stdout() : invalid connection Debugging it seems

Re: [R] debug an error that incapacitates R?

2009-12-13 Thread Liviu Andronic
Hello And thank you for the quick answer. On 12/13/09, Duncan Murdoch murd...@stats.uwo.ca wrote: I think you need to go back to old-fashioned debugging methods. Identify the line the triggers the error, by using debug() and single stepping through sosInit(), or by adding print() or cat()