I am a happy user of ESS for coding and debugging R code. I have found a elusive bug recently deeply inside several for loops and ifs structures.
Is there any way of having ESS selectively travel the if/else structures or loop for all the values in a for loop?.
Does R or ESS have debugger mode where you can skip else clauses, loop the values and step into, step through, return etc?
[UPDATE]
Thanks @jubba for the link to the other SO question about debugging tools for R-language. At the end this was my real question. This other thread give the links for the kind of things that I wanted to know about the way of doing debugging in the current R.
There has been a more general question about debugging in R on Stackoverflow :
Debugging tools for the R language
One answer by Davor Cubranic points to ess-tracebug
which is, according to its website, "An emacs package for interactive debugging and error tracing in ESS". I've never used it myself, but it may be useful to you :
http://code.google.com/p/ess-tracebug/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With