[R] How to comment out multiple lines in R source code?

A.J. Rossini rossini at blindglobe.net
Wed Oct 10 20:55:07 CEST 2001

>>>>> "jl" == jonathan li <jonathan_li at agilent.com> writes:

    jl> Hi, Is there a way to comment out multiple lines at once in R
    jl> source code like C language's /* */ struct? This is quite
    jl> useful when one is testing different sections of a source
    jl> code.

One alternative is to use editor macros for this.

(X)Emacs, when using ESS, supports comment-region and uncomment-region


A.J. Rossini				Rsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics		rossini at u.washington.edu	
FHCRC/SCHARP/HIV Vaccine Trials Net	rossini at scharp.org
-------- (fridays are probably at Rosen) --------
FHCRC: M-W: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email
UW:   T-Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list