Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] Block comments in R?

Uwe Ligges

2006-10-05

Replies:



Wee-Jin Goh wrote:
> Hello list,
>
> Is there any way to perform a block comment in R? In C++, anything in
> between a /* and */ is considered a comment, and it allows
> programmers to comment out chunks of code for testing and debugging.
> Is there such a feature in R?


This has frequently been asked on the list. Try to google for it. You
will find answers like

if(FALSE){"
  code block
  commented
"}


or "use a good editor that supports commenting and uncommenting blocks".


Uwe Ligges


> Cheers,
> Wee-Jin
>
> ______________________________________________
> R-help@(protected)
> 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.

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.