Skip to content
Prev 15984 / 63433 Next

Any plans for commenting out region via something like " /* */ "?

I realize this thread is a bit old, but it only just came to my 
mind.  What about using a function like

commentOut <- function(expr) { invisible() }

and then

commentOut({
	a <- 10
	bladfkljasdlkfj()
	blah blah blah
})

Lazy evaluation prevents the expression from being evaluated so 
you don't have to worry about syntatic correctness.  And it nests 
too (I believe).

Belated US$0.02.

-roger
A.J. Rossini wrote: