What is JSweave?
JSweave is a free Java program (Apache License) that produces a LaTeX document combined with the output from R, the statistical package. By embedding R source code into a LaTeX document with a markup tag, JSweave will insert an R output and create a new LaTeX document. The graphs are inserted automatically as well. JSweave can also be used to extract R source code from the document.
The combination of a documentation and programming code for readability is called literate programming named by Donald Knuth in his book. The statistical package R provides a literate programming tool for S language called Sweave. JSweave is just a superset of Sweave and provides additional features. A summary of the extended features are:
- flexible code reuse,
- presenting the source style without input prompt,
- compact verbatim format,
- internationalization support.
See JSweave Manual for more details.
Because JSweave is just an extention of Sweave, you can process the original Sweave document and see the difference in the output if you are familiar with Sweave.