Re: [R] Sweave files into LaTex

2014-04-07 Thread Axel Urbiz
Thanks Michael. That worked perfect! Best Axel. On Sat, Apr 5, 2014 at 2:13 PM, Michael Friendly frien...@yorku.ca wrote: If you use knitr, you can do, in master.Rnw Rcode, child=Rcode.Rnw= @ This is the equivalent of \input{} (but not \include{}) at the .Rnw level. At any rate, if you

Re: [R] Sweave files into LaTex

2014-04-05 Thread Michael Friendly
If you use knitr, you can do, in master.Rnw Rcode, child=Rcode.Rnw= @ This is the equivalent of \input{} (but not \include{}) at the .Rnw level. At any rate, if you have more than just a few code chunks, you should do your work in master.Rnw and produce master.tex from that using either

[R] Sweave files into LaTex

2014-04-04 Thread Axel Urbiz
Hi, I'm writing a thesis in Latex (say master.tex). I'd like to include R code/results from an .Rwd file. I've naively tried: 1) Add ONLY the code below in Rcode.Rnw file: \section{Exploratory data analysis} eval=TRUE, echo=FALSE= library(ggplot2) data(diamonds) head(diamonds) @ 2) Then, in

Re: [R] Sweave files into LaTex

2014-04-04 Thread Duncan Murdoch
On 04/04/2014, 7:10 PM, Axel Urbiz wrote: Hi, I'm writing a thesis in Latex (say master.tex). I'd like to include R code/results from an .Rwd file. I've naively tried: 1) Add ONLY the code below in Rcode.Rnw file: \section{Exploratory data analysis} eval=TRUE, echo=FALSE= library(ggplot2)