Dear Lister, I understand I can put '#' to put comment line by line. But is there a way to put comment with multiple lines without having to put '#' on the every line? Thanks.
Gabor Grothendieck
2007-Mar-18 22:10 UTC
[R] any simple way to put comment with multiple lines
You could do this: f <- function(x) { "This is some text that I would like to have here." x + 1 } f(2) # 3 On 3/18/07, Wensui Liu <liuwensui at gmail.com> wrote:> Dear Lister, > I understand I can put '#' to put comment line by line. But is there a > way to put comment with multiple lines without having to put '#' on > the every line? > Thanks. > > ______________________________________________ > R-help at 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. >
Wensui Liu schreef:> Dear Lister, > I understand I can put '#' to put comment line by line. But is there a > way to put comment with multiple lines without having to put '#' on > the every line? > Thanks. > > ______________________________________________ > R-help at 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. >Dear Wensui, This could suit your needs: if(FALSE) { code you don't want executed } hope this helps and kind regards, Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +31302535773 Fax: +31302531145 http://intamap.geo.uu.nl/~paul