On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin <mark.dalp...@pacificedge.co.nz> wrote: > I usually develop my R-code in Emacs (ESS-mode). This permits me to refine > my tables and graphs before I incorporate them into Lyx. This is much faster > as it interactive and avoids the time to run LaTeX (or export the R, etc > etc). Then I write the text part of my report, and, in the Lyx scrap, I > paste the required chunks of R-code. Nice and simple (thank you!). The > problem is that when I paste the R-code from Emacs to the Lyx scrap, the > End-Of-Line character gets converted into something else (a BLANK or some > other white space, I guess), which is not acceptable to the R-parser when > Sweave runs. This means that every paste operation is followed by many edit > operations to convert the blanks back into new-lines. > > Is is possible to prevent this mangling of the paste?
Hi Mark, Does ctrl+shift+v work for you? Or, Edit > Paste Special > Plain Text ? Best, Scott