[R] Latex and Stangle()

Ruihong Huang ruihong.lang.r at googlemail.com
Wed May 5 18:09:41 CEST 2010


Hi,

I suggest you use the listings package
...

\usepackage{listings}

....
\appendix
\lstinputlisting[language=R]{Relatorio.R}

....


Best,
Ruihong


On 05/05/2010 02:21 PM, Silvano wrote:
> Hi,
>
> I'm using the Sweave and I would like include codes of the R in my 
> LaTeX file.
>
> I extracts the R code with Stangle (), whose name is Relatorio.R but I 
> can't include it
> in the Latex file as an appendix.
>
> Suggests?
>
> Thanks,
>
> --------------------------------------
> Silvano Cesar da Costa
> Departamento de Estatística
> Universidade Estadual de Londrina
> Fone: 3371-4346
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list