Sweave is a historical template created in 2002.

17Years Old 1,020Users 0Jobs

Example code 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}
Edit

Last updated February 11th, 2019