Re: [R] Comment blocks in R programs

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Wed 20 Sep 2006 - 15:41:20 GMT

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@gmail.com> wrote:
> Try this:
>
> if (FALSE) {
> ... whatever ...
> }
>
> On 9/20/06, Joe Byers <joe-byers@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@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.
> >
>



R-help@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. Received on Thu Sep 21 01:52:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 20 Sep 2006 - 16:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.