[R] any simple way to put comment with multiple lines

Gabor Grothendieck ggrothendieck at gmail.com
Sun Mar 18 23:10:51 CET 2007


You could do this:

f <- function(x) {
"This is some
text that I
would like to
have here."
x + 1
}
f(2) # 3


On 3/18/07, Wensui Liu <liuwensui at gmail.com> wrote:
> Dear Lister,
> I understand I can put '#' to put comment line by line. But is there a
> way to put comment with multiple lines without having to put '#' on
> the every line?
> Thanks.
>
> ______________________________________________
> 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