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

From: <Udo.Junghans_at_nw-fva.de>
Date: Thu, 05 Feb 2009 12:30:08 +0100 (CET)


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
Received on Thu 05 Feb 2009 - 12:49:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 05 Feb 2009 - 20:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive