From: Alexandre Depire <depire_at_gmail.com>

Date: Sun 17 Sep 2006 - 14:45:11 GMT

LaTex

*\documentclass{report}
*

\usepackage{listings}

\lstloadlanguages{R}

The code is:

\lstset{language=R}

# test

rm(list=ls())

x<-1:10

mean(x)

R-help@stat.math.ethz.ch 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. Received on Mon Sep 18 00:52:26 2006

Date: Sun 17 Sep 2006 - 14:45:11 GMT

LaTex

main.tex

\usepackage{listings}

\lstloadlanguages{R}

*\begin{document}
*

\include{annexe}

\end{document}

annexe.tex

The code is:

\lstset{language=R}

#\include{} or \input or direct code ???

R code

# test

rm(list=ls())

x<-1:10

mean(x)

[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch 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. Received on Mon Sep 18 00:52:26 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Sun 17 Sep 2006 - 17:30:05 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*