[R] Beamer and Sweave

Michael Kubovy kubovy at virginia.edu
Sun Aug 6 20:40:05 CEST 2006


Dear R-helpers,

Here is a minimal .Rnw file which shows that builds do not work in  
frames that contain chunks of verbatim code:

\documentclass[]{beamer}

\author{}
\date{}

\title{Title}

\begin{document}

\frame[containsverbatim]{\frametitle{Here the build doesn't work}
\begin{enumerate}[<+->]
	\item A
	\item \alert{B}
	\item C
\end{enumerate}
<<generateIQ>>=
	iq <- c(96, 102, 104, 104, 108, 110)
@
}

\frame{\frametitle{Here it does}
\begin{enumerate}[<+->]
	\item A
	\item \alert{B}
	\item C
\end{enumerate}
}

\end{document}

Is this a Beamer problem or an Sweave problem? Suggestions?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list