On Fri, Jul 03, 2015 at 05:59:44AM -0700, Rich Shepard wrote:
> On Fri, 3 Jul 2015, Scott Kostyshak wrote:
> 
> >Let's take this step-by-step. First, I strongly recommend using knitr over
> >Sweave (this is not just a personal preference). If you go to Help >
> >Specific Manuals > Knitr and compile, does it work?
> 
> Scott,
> 
>   Interesting. I'll take a little time to try this, but after a lot more
> research I believe that I indentified the problem: Sweave (at least) wants
> to run R code to produce a result ,such as str() and summary(), rather than
> using a data.frame already generated by R.
> 
>   A quick test will tell me if knitr behaves differently.
> 
>   The results I want to include in the document have already been calculated
> and I have them in the cwd as records of each day's R session. They just do
> not cleanly paste into the LyX document; the \n seem to be lost

I hope this doesn't discourage you from trying knitr/Sweave, but you
could try ctrl+shift+v, or Edit > Paste Special > plain text. That
should preserve the line breaks.

Scott

Reply via email to