[R] R commands formating for LaTeX

Andrew Robinson andrewr at uidaho.edu
Mon Mar 22 17:45:03 CET 2004


Rado,

a simple solution is to use the verbatim environment in LaTeX:

\begin{verbatim}

... R input and output pasted here ...

\end{verbatim}

However, I very strongly recommend that you consider using Sweave instead. 

Good luck,

Andrew

On Monday 22 March 2004 08:27, Rado Bonk wrote:
> Dear R users,
>
> I have to include typical UNIX formated R commands and outputs into the
> article using LaTeX.
>
> What is the easiest way to include R prompt commands and text outputs
> (including messages) into LaTeX documents? Is there any template or
> library?
>
> So far I'm trying to produce R commands in LaTeX using LaTeX general
> format options.
>
> Thanks,
>
> Rado
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

-- 
Andrew Robinson                      Ph: 208 885 7115
Department of Forest Resources       Fa: 208 885 6226
University of Idaho                  E : andrewr at uidaho.edu
PO Box 441133                        W : http://www.uidaho.edu/~andrewr
Moscow ID 83843                      Or: http://www.biometrics.uidaho.edu
No statement above necessarily represents my employer's opinion.




More information about the R-help mailing list