I'm having trouble including Sweave output in my Beamer file. Specifically, the Soutput environment is causing problems (it runs if I comment those lines out, but, of course, the table is not presented as a single row and in standard font). Here is the basic file:
\documentclass{beamer}
\usepackage{Sweave}
\begin{document}
\begin{frame}{Comparison}
\begin{Schunk}
\begin{Soutput}
Gender Admitted Rejected
1 Female 6 6
2 Male 6 6
\end{Soutput}
\end{Schunk}
\end{frame}
\end{document}
And the error in its gory detail:
ERROR: FancyVerb Error:
--- TeX said ---
Extraneous input `Gender Admitted Rejected 1 Female 6 6 2 Male 6 6 \end {Soutput} \end {Schunk} \end {beamer@frameslide}\ifbeamer@twoscreenstext \beamer@dosecondscreennow {{Comparison} \begin {Schunk} \begin {Soutput} Gender Admitted Rejected 1 Female 6 6 2 Male 6 6 \end {Soutput} \end {Schunk} }\fi \ifbeamer@anotherslide \advance \beamer@slideinframe by 1\relax \relax \expandafter \iterate \fi \let \iterate \relax \beamer@writeslidentry \beamer@reseteecodes ' between \begin{Soutput}[<key=value>] and line end
.
\FV@Error ... {FancyVerb Error:
\space \space #1
}
l.13 \end{frame}
--- HELP ---
From the .log file...
This input will be discarded. Hit <return> to continue.
Thanks for any assistance that you can provide.
\begin{frame}[fragile]help? – Caramdir Feb 21 '11 at 04:48fragileoption for theframeenvironment. – Charlie Feb 21 '11 at 05:33