[R] any simple way to put comment with multiple lines

Paul Hiemstra p.hiemstra at geo.uu.nl
Mon Mar 19 09:52:20 CET 2007


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



More information about the R-help mailing list