Re: [Rd] Any plans for commenting out region via something like " /* */ "?

From: Barry Rowlingson <B.Rowlingson_at_lancaster.ac.uk>
Date: Fri 07 Jan 2005 - 23:13:25 EST

Peter Dalgaard wrote:

> I don't think so. Personally, I'd rather work on getting the parser to
> behave properly in all cases on
>
> if (FALSE){
> ...lots of lines...
> }

  Including cases where "...lots of lines..." isn't syntactically correct?

e.g.

  if (FALSE) {
   if(foo){.... - do something here....
  }

You can currently make the 'if'd out bit a big string:

foo <- function(bar){

   if(FALSE){
"
Foo
if(foo){
"

   }
   return(99)
}

[R-1.9.1 seems to want backslash continuation characters inside multi-line quotes, R 2.0.0 doesn't]

Baz



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jan 07 22:37:33 2005

This archive was generated by hypermail 2.1.8 : Fri 07 Jan 2005 - 23:19:31 EST