Re: [R] LaTeX and R-scripts/-results

From: Oliver Bandel <>
Date: Sun, 30 Nov 2008 00:34:13 +0100

Hello Thomas (and all),

Zitat von Thomas Petzoldt <>:

> Oliver Bandel wrote:
> > Hello,
> >
> > at some places I read about good interaction of
> > LaTeX and R.
> >
> > Can you give me a starting point, where I can find
> > information about it?
> >
> > Are there special LaTeX-packages for the support,
> > or does R have packages for support of LaTeX?
> > Or will an external Code-Generator be used?
> >
> > TIA,
> > Oliver
> Hi Oliver,
> you are right, LaTeX and R are perfect companions. Look for
> "Sweave"(*).
> You find an introduction of Fritz Leisch in R-News 2002, Vol 2/3:

OK, really wonderful tool!

This is something, I'm looking for since many years... ... maybe about a decade....

... R as graphical pre-processor and data-analyser for LaTeX, and LaTeX as a tool to write papers with analysed data imported into the papers.

This noweb-based approach (literate programming is so wunderful) is so much better than the many workarounds with so many other tools. When I remember -- for example -- metapost and the problem of not being able to name the outputs arbitrarily (using numbers for the figures is the only possibility), and hand made inserting the results with \includegraphics, this is so much better!

Maybe noweb can also be used to insert not only R-stuff but also creations from metapost, dia, dot (graphviz) and other tools into a LaTeX-document.

This is the right way to make documents and research clean and handy. :)


   Oliver mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 29 Nov 2008 - 23:41:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 30 Nov 2008 - 00:30:27 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive