NppToR: R Syntax Highlighting, Code Folding and Code-Passing for R in Notepad++
Thursday, 11 February 2010
When I’m not using Stata for modelling I sometimes dabble with R. In general I find that this is a good environment for modeling when you may want to keep several datasets (or data.frames as they are called in R) in memory. For better or worse, Stata allows you to keep only one dataset in memory at a time. Normally I don’t find this to be restrictive but there are times when it’s nice to be able to save some result to a matrix while keeping your working dataset in memory.
Anyway, the purpose of this post isn’t to discuss R vs. Stata — I’ll leave that for another day. For now, I just want to mention a nice tool by Andrew Redd who has written a program using AutoHotkey to link the powerful text editing program Notepad++ to R. Tinn-R is another popular text-editor for R programming but I’ve found it simpler to stick to one text-editor for all my programming needs. Check out the link below to download Andrew’s tool for use on the Windows platform. Instructions to set it up are here if necessary.
Update: Fixed the link to NppToR. Can now be found at sourceforge.
Comments on this article can be sent to me by e-mail..