[R] Comment blocks in R programs

Romain Francois rfrancois at mango-solutions.com
Wed Sep 20 17:49:44 CEST 2006

Gabor Grothendieck wrote:
> Try this:
> if (FALSE) {
> ... whatever ...
> }

Problem is,
... whatever ...
must be syntactically correct to use that trick.

Why not using a text editor that does rectangular selection or 
commenting several lines at a time, there are many out there to propose 
that kind of feature.



> On 9/20/06, Joe Byers <joe-byers at utulsa.edu> wrote:
>> All,
>> Is there a way to add comment blocks in an R script other than using #
>> at the beginning of each line?  Or, is there anything like ndocs for C++
>> and the markup for Java that can generate documentation?
>> This may be a bad question, but I have searched R documentation and
>> can't seem to find an Answer.  I have also looked at the R package
>> documentation mark up docs for help files but that was more than I wanted.
>> thank you for you help.
>> Joe

/data analysis that delivers/

Tel   +44 1249 467 467
Fax   +44 1249 467 468

More information about the R-help mailing list