Maybe I missed something ... you don't need to use an external file to do this.
Just specify that the results of the sweave chunk is latex. Within ERT bits:
->< ERT ><---
\SweaveOpts{echo=FALSE, print=FALSE}
<>=
library(xtable)
@
Le 9 juin 09 à 09:52, christiaan pauw a écrit :
Answering my own question for the record
To include latex code generated by R through Sweave one has to
specify a
filename with a .tex extension save the latex files there. In that way
Sweave doesnt print the tex code in the pdf document by saves
Answering my own question for the record
To include latex code generated by R through Sweave one has to specify a
filename with a .tex extension save the latex files there. In that way
Sweave doesnt print the tex code in the pdf document by saves it in the
specified place.
In LyX these tex docume
Hi Everybody
I started using R with LyX (through Sweave) recently (earlier today
actually) and can see from here that it has great potential.
R has functions can generate latex tables which is highly cusomizable. When
these functions are run using sweave in LyX the do exactly what they are
suppose