My suggestion is always ERT for R code chunks, because it is clean and
easier to play with program code.

Regards,
Yihui
--
Yihui Xie <[email protected]>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 10:30 PM, Mark Dalphin
<[email protected]> wrote:
> Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not
> reminding me that he has already suggested I switch to knitr). I mis-wrote
> when I said "scrap" in my text; it is indeed the "chunk" into which I paste
> my text from Emacs.
>
> When I use "ctrl-shift-v" into a chunk that I have pre-filled with
> "<<echo=FALSE,fig=TRUE>>=\n" (where "\n" means I am on the next line, not
> the literal characters), the first line adds correctly, then there is a
> blank line and change of paragraph type into "Standard", with the remaining
> lines in that standard paragraph.
>
> If I change my work order and paste-special into a "Standard" paragraph, it
> looks alright, but then selection of those lines and conversion to a "Chunk"
> paragraph yields a similar output: one good, chunk line, a blank line plus
> several lines in the following "Standard" paragraph.
>
> Trying Yihui's ERT format seemed to paste correctly, however, I am left
> wondering then "in what kind of paragraph" should the ERT exist. Just as a
> stand-alone "Standard" paragraph? I can live with that if it leads to clean
> processing of my report. Does anyone have any comments on possible
> side-effects of using the ERT to contain the Sweave material?
>
> Cheers,
> Mark

Reply via email to