Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21ba6e7ff48dbb4

Jump to content

Sweave

From Wikipedia, the free encyclopedia

Sweave is a function in the statistical programming language R that enables integration of R code into LaTeX or LyX documents. It was introduced by Friedrich Leisch in 2002.[1] The purpose is "to create dynamic reports, which can be updated automatically if data or analysis change".[2]

The data analysis is performed at the moment of writing the report, or more exactly, at the moment of compiling the Sweave code with Sweave (i.e., essentially with R) and subsequently with LaTeX. This can facilitate the creation of up-to-date reports for the author.

Because the Sweave files together with any external R files that might be sourced from them and the data files contain all the information necessary to trace back all steps of the data analyses, Sweave also has the potential to make research more transparent and reproducible to others.[3] However, this is only the case to the extent that the author makes the data and the R and Sweave code available. If the author only publishes the resulting PDF document or printed versions thereof, a report created using Sweave is no more transparent or reproducible than the same report created with other statistical and text preparation software.

See also

[edit]

References

[edit]
  1. Leisch, Friedrich (2002). "Sweave: Dynamic Generation of Statistical Reports Using Literate Data Analysis". In Härdle, Wolfang; Rönz, Bernd (eds.). COMPSTAT 2002 - Proceedings in Computational Statistics. Heidelberg: Physica Verlag. pp. 575–580. doi:10.1007/978-3-642-57489-4_89.
  2. Leisch, Friedrich (2002). "Sweave, Part I: Mixing R and LaTeX: A Short Introduction to the Sweave File Format and Corresponding R Functions" (PDF). R News. 2 (3): 28–31. Retrieved 22 January 2012.
  3. Pineda-Krch, Mario (17 January 2011). "The Joy of Sweave – A Beginner's Guide to Reproducible Research with Sweave" (PDF). Retrieved 22 Jan 2012.
[edit]
  • Pweave (Python adaptation of Sweave)