[R] Multi-line comments?

Michael Knudsen micknudsen at gmail.com
Wed Jul 22 16:54:34 CEST 2009


On Wed, Jul 22, 2009 at 4:30 PM, Mark Knecht<markknecht at gmail.com> wrote:

>   I wanted to comment out 20 lines that I'm moving to a function but
> didn't want to delete them. Is there no defined way to get around
> using a # on each of the 20 lines?

Just like you, I have been longing for that myself. It seems that the
answer is negative, so I have ended up using

if (1==0)
{
   # code goes here
}

although is not really nice to look at.

-- 
Michael Knudsen
micknudsen at gmail.com
http://lifeofknudsen.blogspot.com/




More information about the R-help mailing list