[R] How can I comment out whole chunks of code?

Mark Na mtb954 at gmail.com
Wed Sep 24 22:03:06 CEST 2008


Hello,

I know this has been discussed, but I haven't found an answer in the 
archives. Basically, I'd like to be able to comment out chunks of code 
(which may or may not be syntactically correct) without having to put 
the # symbol in front of each line (and, if possible, without having to 
adopt a new text editor).

My current R setup (XP) is very simple. I always have three windows 
open: the R console, my working directory, and a Notepad window 
containing my program. Adopting Tinn-R would probably solve this 
problem, but for simplicity I'd rather not move beyond Notepad (if 
possible).

Thanks for any help you can provide,

Mark



More information about the R-help mailing list