[R] How to comment in R

Stephan Kolassa Stephan.Kolassa at gmx.de
Wed Feb 11 10:31:51 CET 2009


Hi Mihai,

one (very bad style) way would be

if (FALSE) {
   comment
   comment
   comment
}

But putting a # in front of every line is easier to spot in the code.

HTH,
Stephan


Mihai.Mirauta at bafin.de schrieb:
> Hi everybody,
> 
> I use for the moment "#" at the begining of each line for comments.
> 
> Is there any possibility to comment more than one line, like something which shows the beggingng and the end of the comment? Or is there a possibility to comment only a part of a line?
> 
> Thanks,
> 
> Mihai
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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