Norm Matloff
2009-Dec-07 07:39 UTC
[R] Announce: edtdbg, integrating R's debug() with your text editor
I've just developed edtdbg, a small package that integrates R's debug() with one's text editor. Excerpt from the README file: Goal The debug() function in R is primitive. My goal was to make it more usable by integrating it with one's text editor. Hence I wrote the package here, edtdbg. Its features include: * As one steps from line to line of code using the debugger, the cursor in the editor will always follow, i.e. it will alway be on whatever line the debugger is on. * One can enable automatic display of user-specified variables. * One can quickly and conveniently set "breakpoints." Currently the package is implemented only for Vim. In addition, the second and third features require the vim-r plugin for Vim. Emacs/ESS users should easily be able to convert the code; some of the machinery is already in the code and in the instructions below. I'm placing the current version of the package at: http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/edtdbg.tar.gz http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/edtdbg.zip Please give me your comments. I probably will upload to CRAN at some point, possibly after an ESS guru contributes the ESS code. :-) A note on my Rdsm package for parallel R: The new, much improved version is just about ready. I'll be uploading Rdsm to CRAN very soon. Norm Matloff
Liviu Andronic
2009-Dec-07 07:52 UTC
[R] Announce: edtdbg, integrating R's debug() with your text editor
Hello On 12/7/09, Norm Matloff <matloff at cs.ucdavis.edu> wrote:> Please give me your comments. I probably will upload to CRAN at some > point, possibly after an ESS guru contributes the ESS code. :-) >Do you think that the package can be made to work with Geany? Thank you Liviu
Jakson A. Aquino
2009-Dec-07 11:39 UTC
[R] Announce: edtdbg, integrating R's debug() with your text editor
On Sun, Dec 06, 2009 at 11:39:06PM -0800, Norm Matloff wrote:> I've just developed edtdbg, a small package that integrates R's debug() > with one's text editor.Congratulations! I was planning to add this functionality to vim-r-plugin, but I had no idea how to do it. I downloaded edtdbg files from http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/ since the tar.gz package was not available. -- Jakson Aquino
Duncan Murdoch
2009-Dec-07 12:26 UTC
[R] Announce: edtdbg, integrating R's debug() with your text editor
On 07/12/2009 2:39 AM, Norm Matloff wrote:> I've just developed edtdbg, a small package that integrates R's debug() > with one's text editor. > > Excerpt from the README file: > > Goal > > The debug() function in R is primitive. My goal was to make it more > usable by integrating it with one's text editor. Hence I wrote the > package here, edtdbg. Its features include: > > * As one steps from line to line of code using the debugger, the > cursor in the editor will always follow, i.e. it will alway be on > whatever line the debugger is on. > * One can enable automatic display of user-specified variables. > * One can quickly and conveniently set "breakpoints." > > Currently the package is implemented only for Vim. In addition, the > second and third features require the vim-r plugin for Vim. Emacs/ESS > users should easily be able to convert the code; some of the machinery > is already in the code and in the instructions below. > > I'm placing the current version of the package at: > > http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/edtdbg.tar.gz > > http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/edtdbg.zip > > Please give me your comments. I probably will upload to CRAN at some > point, possibly after an ESS guru contributes the ESS code. :-) > > A note on my Rdsm package for parallel R: The new, much improved > version is just about ready. I'll be uploading Rdsm to CRAN very soon.I haven't tried it yet, but it looks good from the writeup. One suggestion: you could use the setBreakpoint function to set breakpoints, rather than re-sourcing the breakpoint. An advantage of this is that it lets you set breakpoints in packages. Duncan Murdoch
Norm Matloff
2009-Dec-07 22:42 UTC
[R] Announce: edtdbg, integrating R's debug() with your text editor
The files seem to be inaccessible, and I can't see why. Neither can my department Web technician. So, for the time being, simply go to http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/ and then download the 3 files as directed. Meanwhile, I've thought of an interesting enhancement, and a couple of people have made suggestions as well. I'll post an enhanced version in a day or so. Norm> Date: Sun, 6 Dec 2009 23:39:06 -0800 > From: Norm Matloff <matloff at cs.ucdavis.edu> > Subject: [R] Announce: edtdbg, integrating R's debug() with your text > editor > To: r-help at r-project.org > > I've just developed edtdbg, a small package that integrates R's debug() > with one's text editor. > > Excerpt from the README file:...> I'm placing the current version of the package at: > > http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/edtdbg.tar.gz > > http://heather.cs.ucdavis.edu/~matloff/R/edtdbg/edtdbg.zip