[R] Multi-line comments?

Gabor Grothendieck ggrothendieck at gmail.com
Wed Jul 22 16:50:49 CEST 2009


Try
if (FALSE) { ... }

On Wed, Jul 22, 2009 at 10:30 AM, Mark Knecht<markknecht at gmail.com> wrote:
> Hi,
>   I looked in the language definition and was surprised. Is there
> really no multi-line/block comment defined in R?
>
>   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?
>
> Thanks,
> Mark
>
> ______________________________________________
> R-help at r-project.org 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.
>




More information about the R-help mailing list