[R] how to comment off sections

Erik Iverson eriki at ccbr.umn.edu
Sat Jul 17 17:20:35 CEST 2010


On 07/17/2010 01:05 AM, Joshua Wiley wrote:
> I use XEmacs + ESS, and looking for ways to add text to a region of
> code, I see it is quite easy
> with C-x r t.  Thanks for your great advice.
>

I use GNU Emacs.  With a region of code actve, M-; will add the comment line (or 
remove it if it's already there) to each line in the region.  Perhaps XEmacs has 
a similar keybinding?

It's nice because it's the same thing to comment or uncomment a block of code.



More information about the R-help mailing list