[R] How to comment in R

Mihai.Mirauta at bafin.de Mihai.Mirauta at bafin.de
Wed Feb 11 09:47:09 CET 2009

I am using Tinn-R. 

-----Ursprüngliche Nachricht-----
Von: Søren Højsgaard [mailto:Soren.Hojsgaard at agrsci.dk] 
Gesendet: Mittwoch, 11. Februar 2009 09:40
An: Mirauta, Mihai; r-help at r-project.org
Betreff: SV: [R] How to comment in R

A hash (#) anywhere on a line will comment out the rest of the line. Try!
I don't think there is anything in R that will indicate the beginning and end of a "comment section" (like /* .... */ would in SAS). However most editors (and certainly emacs and Tinn-R) will allow you to comment out several lines.


Fra: r-help-bounces at r-project.org på vegne af Mihai.Mirauta at bafin.de
Sendt: on 11-02-2009 09:32
Til: r-help at r-project.org
Emne: [R] How to comment in R

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?



        [[alternative HTML version deleted]]

R-help at r-project.org mailing list
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