Friedrich Leisch Sweave and Beyond: Computations on Text Documents ************************************************* Sweave is a tool that allows to embed R code in LaTeX documents. The code can be evaluated and the resulting console output, figures and tables are automatically inserted into the final document. In this paper we first give an introduction into the Sweave file format, and then demonstrate how to use these files as R package user guides known as package vignettes. Finally we give an outlook on the design of the next generation of Sweave, which uses S4 classes and methods and will allow for much more complex computations on text documents.