From khansen at stat.berkeley.edu  Thu Feb  5 17:36:59 2009
From: khansen at stat.berkeley.edu (Kasper Daniel Hansen)
Date: Thu, 5 Feb 2009 08:36:59 -0800
Subject: [Rd] Multiple-Line Comment (PR#13503)
In-Reply-To: <20090205113009.218B42823A68@mail.pubhealth.ku.dk>
References: <20090205113009.218B42823A68@mail.pubhealth.ku.dk>
Message-ID: <5C01B560-1AC2-461F-9551-C85825E8EC9A@stat.berkeley.edu>

(no cc to r-bugs)

One obvious work around is to use an editor that lets you comment/ 
uncomment many lines of code at once. ESS/Emacs for example, has this  
feature. Many other editors do as well. I actually find it easier to  
see what is commented out this way.

Clearly this does not address the question as written though.

Kasper

On Feb 5, 2009, at 3:30 , Udo.Junghans at nw-fva.de wrote:

> Hello,
>
> sorry for writing here because my problem is not a realt bug but may  
> be
> a solution for many people working with R:
>
> I miss the feature for commenting some lines of code at once without
> writing a bunch of "#" in front of each line.
> This is interesting for trying out some code.
> I found some workarounds like
>
> IFELSE(FALSE){} and
>
> `!`<- function(x)
>  {
>    if (inherits(x, "character") == FALSE)
>    .Primitive("!")(x) else invisible(x)
>   }
>
> but IFELSE needs valid code and the '!' <- function breaks when a "  
> ' "
> appears in the comment
>
> so it would be fine to have something like /* ...  */ or so  for
> multiple lines
>
>
> with regards
>
> Udo Junghans
> -- 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> Udo Junghans
> Abteilung Waldschutz, K?fer und Mittelpr?fung
> Nordwestdeutsche Forstliche Versuchsanstalt
> Gr?tzelstrasse 2
> D-37079 G?ttingen <mailto:udo.junghans at nw-fva.de>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Multiple-Line Comment (PR#13503)
Kasper Daniel Hansen