Sweave
R and LaTeX Integration software From Wikipedia, the free encyclopedia
R and LaTeX Integration software 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.
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.