[R] Comment blocks in R programs

Gabor Grothendieck ggrothendieck at gmail.com
Wed Sep 20 17:41:20 CEST 2006


I should have noted that the ...whatever... must be valid R.
You could also do this:

" Here are some
comments.
"



On 9/20/06, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> Try this:
>
> if (FALSE) {
> ... whatever ...
> }
>
> 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
> >
> > ______________________________________________
> > 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.
> >
>



More information about the R-help mailing list