You may need it \Sexpr{R expression}; for example this piece of sweave
<<echo=FALSE>>=
z <- exp(pi)
@
\begin{tabular}{cc}
a & \Sexpr{z} \\
b & \Sexpr{round(z,3)} \\
\end{tabular}
becomes this when Sweaved (Swoven?)
\begin{tabular}{cc}
a & 23.1406926327793 \\
b & 23.141 \\
\end{tabular}
source
share