[R] comment code

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Oct 27 16:54:56 CEST 2005


On Thu, 27 Oct 2005, Li,Qinghong,ST.LOUIS,Molecular Biology wrote:

> In R, can one comment out a block of code at once instead of using "#" 
> one line at a time? Say, in SAS, one can use /*....*/ to comment out 
> many lines.

Try RSiteSearch("comment multiple lines").

Note that R-aware editors can do this for you using #.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list