How do I keep Sweave from compiling things in a verbatim environment? For example:
\documentclass{article}
\begin{document}
\begin{verbatim}
<<>>=
1+1
@
\end{verbatim}
\end{document}
Results for me in a pdf with:
\begin{Schunk}
\begin{Sinput}
> 1+1
\end{Sinput}
\begin{Soutput}
[1] 2
\end{Soutput}
\end{Schunk}
But I just wanted the input commands.
To be more clear, I want the output in this pdf file to be exactly:
<<>>=
1+1
@

<<eval = F>>instead of<<>>to suppress evaluation of the code. i presume you wantbegin{Schunk}andend{Schunk}to be displayed. – Ramnath Nov 20 '11 at 14:05<<>>=and@signs. Its for lecture slides on Sweave:) – Sacha Epskamp Nov 20 '11 at 14:15