This will make more sense with an example. Typical R manuals from CRAN show R code with a line starting with > and indentations indicated with +. See
http://cran.r-project.org/web/packages/doMC/vignettes/gettingstartedMC.pdf
for an example.
The trouble is that you can’t cut and paste that into a console without copying it into an editor and removing those arrow and plus characters. Is there an easier way to execute that text as R code? I figured that somebody must have dealt with this problem. Otherwise, I guess I’ll write a script.
The writing has already been done.
2009 post by Duncan Murdoch:
Subsequent 2009 R-help post by Gabor Grothendieck:
Note: The upvotes prompted me to post this as a “feature request” on the RStudio Discussion Board. Although I have not broken it yet, it might need more testing if it were to be built in to the RStudio framework.