[R] how to use \Sexpr{} with sweave
cryan at binghamton.edu
cryan at binghamton.edu
Sun Oct 7 21:13:25 CEST 2007
I think some inadvertent cutting and pasting may have made my last e-mail difficult to interpret. Here is the .tex file I get as output of Sweaving my .Rnw file. Note that "\Sexpr{2+6}" appears where you get (and I want) simply "8".
\documentclass[12pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{Sweave}
\begin{document}
\begin{Schunk}
\begin{Sinput}
> pnorm(1)
\end{Sinput}
\begin{Soutput}
[1] 0.8413447
\end{Soutput}
\end{Schunk}
\Sexpr{2+6}
\end{document}
More information about the R-help
mailing list