Measures Concepts
GitHub icon

Sweave

Sweave - Template language

< >

Sweave is a template language created in 2002.

#1130on PLDB 22Years Old

Sweave is a function in the statistical programming language R that enables integration of R code into LaTeX or LyX documents. The purpose is "to create dynamic reports, which can be updated automatically if data or analysis change".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. Read more on Wikipedia...


Example from the web:
%------------------------------------------- \section{Introduction} %-------------------------------------------- Just a simple introduction to Sweave. <<test1>>= a=1 b=4 a+b print("hello") @ We can call R commands from the text. For example a+b= \Sexpr{a+b}

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout