Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><a href="http://www.stat.uni-muenchen.de/~leisch/Sweave/" rel="nofollow">Sweave</a> is a system for combining <a href="/questions/tagged/r" class="post-tag" title="show questions tagged 'r'" rel="tag">r</a> (or <a href="/questions/tagged/s" class="post-tag" title="show questions tagged 's'" rel="tag">s</a>) code with <a href="/questions/tagged/latex" class="post-tag" title="show questions tagged 'latex'" rel="tag">latex</a> in a single document. It is an implementation of Donald Knuth's <a href="/questions/tagged/literate-programming" class="post-tag" title="show questions tagged 'literate-programming'" rel="tag">literate-programming</a> concept. For new projects, consider using <a href="/questions/tagged/knitr" class="post-tag" title="show questions tagged 'knitr'" rel="tag">knitr</a> instead, which is faster and provides more flexibility.</p> <p>The Sweave file contains normal LaTeX code with R code chunks in it using the following syntax:</p> <pre><code>&lt;&lt;option1=TRUE,option2=3&gt;&gt;= R code here @ </code></pre> <p>Generating a pdf from a Sweave file (generally with a <code>.Rnw</code> extension in R) is a two stage process:</p> <ol> <li>Running <code>Sweave</code> on the <code>Rnw</code> file, which evaluates the code chunks and generates a <code>tex</code> file.</li> <li>Compile the resulting <code>tex</code> file using e.g. <code>pdflatex</code>.</li> </ol> <p>Sweave offers easy integration of R code into any LaTeX document and makes <a href="/questions/tagged/reproducible-research" class="post-tag" title="show questions tagged 'reproducible-research'" rel="tag">reproducible-research</a> easier.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload