Hello, I am using RStudio and have trouble finding out the problematic line in the presence of a bug. Could I view the line NUMBER which contains a bug? Is there any R editor able to do it? Thanks, Miao [[alternative HTML version deleted]]
R. Michael Weylandt
2012-Feb-21 13:16 UTC
[R] Debugging using RStudio or any other R editor
?findLineNum in conjunction with ?setBreakpoint and ?traceback or options(error=recover) seems like a good strategy within R. Not sure what you can get on the IDE end. Michael On Tue, Feb 21, 2012 at 2:38 AM, jpm miao <miaojpm at gmail.com> wrote:> Hello, > > ? I am using RStudio and have trouble finding out the problematic line in > the presence of a bug. Could I view the ?line NUMBER which contains a bug? > Is there any R editor able to do it? > > ? Thanks, > > Miao > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Both ESS (with ess-tracebug) and StatET (an R plug-in for Eclipse) has debugger function. Shige On Tue, Feb 21, 2012 at 8:16 AM, R. Michael Weylandt <michael.weylandt at gmail.com> wrote:> ?findLineNum in conjunction with ?setBreakpoint and ?traceback or > options(error=recover) seems like a good strategy within R. Not sure > what you can get on the IDE end. > > Michael > > On Tue, Feb 21, 2012 at 2:38 AM, jpm miao <miaojpm at gmail.com> wrote: >> Hello, >> >> ? I am using RStudio and have trouble finding out the problematic line in >> the presence of a bug. Could I view the ?line NUMBER which contains a bug? >> Is there any R editor able to do it? >> >> ? Thanks, >> >> Miao >> >> ? ? ? ?[[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Apparently Analagous Threads
- How can I tabulate time series data (in RStudio or any other R editor)?
- Modern Symbolic debugger for R programmes?
- Why can't R understand if(num!=NA)?
- Definition of "lag" is opposite in ts and xts objects!
- How to print the frequency table (produced by the command "table" to Excel