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

Udo.Junghans at nw-fva.de
Thu, 05 Feb 2009 11:30:08 -0000

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>