Re: [R] Block comments in R?

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Thu 05 Oct 2006 - 13:48:45 GMT

Uwe Ligges <ligges@statistik.uni-dortmund.de> writes:
> Use an editor that comments out a whole block which is what I do all the
> time, e.g. use Tinn-R, Emacs or WinEdt, to mention just a few of
> them.

This, of course, works. The if(FALSE) approach does not because it requires the "comment" to be syntactically correct. The multiline string trick is _almost_ there, the problem is that both " and ' are fairly common in text and having to escape that is a pain.

My wtf feature request is to add a multiline string delimiter ala Python like """.

8-P

+ seth



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri Oct 06 00:01:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 05 Oct 2006 - 15:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.