Re: [R] how to comment off sections

2010-07-17 Thread Joshua Wiley
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. On Fri, Jul 16, 2010 at 7:32 PM, Erik Iverson er...@ccbr.umn.edu wrote: On 07/16/2010 06:59 PM, Joshua Wiley wrote: Hello, Is there an way to easy

Re: [R] how to comment off sections

2010-07-17 Thread Peter Dalgaard
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. or even M-x comment-region M-x uncomment-region These are commonly bound to C-c ; (because of LISP heritage), but not in (my

Re: [R] how to comment off sections

2010-07-17 Thread Erik Iverson
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

[R] how to comment off sections

2010-07-16 Thread Joshua Wiley
Hello, Is there an way to easy comment of sections of code? I was thinking something along the lines of \dontrun{ codeline 1 codeline k } but that could be used in regular script files. When I am still working on a script, I often want to being using what is done, but I would like the

Re: [R] how to comment off sections

2010-07-16 Thread RICHARD M. HEIBERGER
if (FALSE) { codeline 1 codeline k } On Fri, Jul 16, 2010 at 7:59 PM, Joshua Wiley jwiley.ps...@gmail.comwrote: Hello, Is there an way to easy comment of sections of code? I was thinking something along the lines of \dontrun{ codeline 1 codeline k } but that could be

Re: [R] how to comment off sections

2010-07-16 Thread Joshua Wiley
That's a great idea. Thanks! On Fri, Jul 16, 2010 at 5:02 PM, RICHARD M. HEIBERGER r...@temple.edu wrote: if (FALSE)  { codeline 1 codeline k } On Fri, Jul 16, 2010 at 7:59 PM, Joshua Wiley jwiley.ps...@gmail.com wrote: Hello, Is there an way to easy comment of sections of

Re: [R] how to comment off sections

2010-07-16 Thread Erik Iverson
On 07/16/2010 06:59 PM, Joshua Wiley wrote: Hello, Is there an way to easy comment of sections of code? I was thinking something along the lines of \dontrun{ codeline 1 codeline k } but that could be used in regular script files. When I am still working on a script, I often want to