
The Sweave Homepage
What is Sweave?
Sweave is a tool that allows to embed the R code for complete data analyses
in latex documents. The purpose is to create dynamic reports, which
can be updated automatically if data or analysis change. Instead of
inserting a prefabricated graph or table into the report, the master
document contains the R code necessary to obtain it. When run through
R, all data analysis output (tables, graphs, etc.) is created on the
fly and inserted into a final latex document. The report can be
automatically updated if data or analysis change, which allows for
truly reproducible research.
Where can I get it?
The Sweave software itself is part of every R installation, see
help("Sweave", package="utils")
to get started. This page features additional material that does not
ship with standard R, like papers and additional examples.
How do I cite Sweave?
To cite Sweave please use the paper describing the first version:
 Friedrich Leisch.
Sweave: Dynamic generation of statistical reports using literate data
analysis.
In Wolfgang Härdle and Bernd Rönz, editors, Compstat
2002  Proceedings in Computational Statistics, pages 575580. Physica
Verlag, Heidelberg, 2002.
ISBN 3790815179.
[ bib 
PDF ]
Manual and FAQ
The Sweave manual and the list of frequently asked questions provide
more detailed information:
Publications
 Friedrich Leisch.
Sweave, part I: Mixing R and Latex.
R News, 2(3):2831, December 2002.
[ bib 
PDF ]

Friedrich Leisch.
Sweave, part II: Package vignettes.
R News, 3(2):2124, October 2003.
[ bib 
PDF ]

Friedrich Leisch.
Sweave and beyond: Computations on text documents.
In Kurt Hornik, Friedrich Leisch, and Achim Zeileis, editors,
Proceedings of the 3rd International Workshop on Distributed Statistical
Computing, Vienna, Austria, 2003.
ISSN 1609395X.
[ bib 
http ]
 Friedrich Leisch and Anthony J. Rossini.
Reproducible statistical research.
Chance, 16(2):4650, 2003.
[ bib ]
 Anthony J. Rossini and Friedrich Leisch.
Literate statistical practice.
UW Biostatistics Working Paper Series 194, University of Washington,
WA, USA, 2003.
[ bib 
http ]
Example files
