Re: [R] How to debug R program?

2006-12-29 Thread tfjbl
On Loops: The apply coomands are better, faster than loops. If there are lots of loops or nested loops then you should be able to replace some of the loops with an apply command. If you have nested loops I'd recommend replacing loops on the inside first. R seems better designed using the apply

Re: [R] How to debug R program?

2006-12-28 Thread Vladimir Eremeev
Hi everyone: Please, refer to the chapter 9 of the R language definition ($R_HOME/doc/ manual/r-lang.pdf) The simplest way is using print() functions. Besides the debugging functions described in the manual, you can use the very powerful package debug, developed by Mark Bravington.

Re: [R] How to debug R program?

2006-12-28 Thread Gabor Grothendieck
On 12/28/06, Vladimir Eremeev [EMAIL PROTECTED] wrote: Hi everyone: Please, refer to the chapter 9 of the R language definition ($R_HOME/doc/ manual/r-lang.pdf) The simplest way is using print() functions. Note that on Mac and Windows you may need to use flush.console() as well if you

[R] How to debug R program?

2006-12-27 Thread Feng Qiu
Hi everyone: I wrote a R program which has loops. When I run the program, it crashed. I would like to identify in which loop the pragram crashed, how can I debug ? I'm new to R, could somebody please give me a general idea about debugging in R.(I'm a C/C++ programmer and have