Skip to content
Prev 157085 / 398506 Next

How can I comment out whole chunks of code?

Also if there are no single quotes in your line you can surround them
with single quotes. Ditto for double quotes.

junk <- "
some R code possibly with
syntax errors
"

If the code is in a function you can omit the junk<-
part.
On Wed, Sep 24, 2008 at 4:10 PM, Duncan Murdoch <murdoch at stats.uwo.ca> wrote: