[R] LaTeX and R-scripts/-results

Oliver Bandel oliver at first.in-berlin.de
Sun Nov 30 00:34:13 CET 2008

Hello Thomas (and all),

Zitat von Thomas Petzoldt <thpe at simecol.de>:

> 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:
> http://cran.r-project.org/doc/Rnews/Rnews_2002-3.pdf

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

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

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


More information about the R-help mailing list