Skip to content
Prev 69506 / 398525 Next

inserting R code in a latex document

Thibaut Jombart wrote:

            
I think we are talking about "Sweave" in package "utils"?
If so, you will find that you have to re-read the manual, because you 
don't need to specify 'Schunk'/'Sinput' yourself: Sweave does it for 
you. Just write the code in code chunks such as

<<>>=
code
# comment
@
LaTeX code

and apply Sweave on your noweb document, the resulting LaTeX document 
has appropriate environments.


Uwe Ligges