Re: [R] Block comments in R?

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

Uwe Ligges <> 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 """.


+ seth mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.