[R] Has anyone used Sweave with the Beamer poster macro for Latex ?
Paul
paul at paulhurley.co.uk
Fri Aug 20 21:58:33 CEST 2010
Hello,
I'm trying to make a poster in Latex using the beamer poster macro
(http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php),
and use Sweave to add in R output.
This works fine for adding graphics and tables, but if I want to put
code in, the file fails to build in Latex.
My Rnw file looks like
\documentclass[final,hyperref={pdfpagelabels=false}]{beamer}
\mode<presentation> {
\usetheme{Berlin}
}
\usepackage{sweave}
\begin{document}
\begin{frame}
\begin{columns}
\begin{column}
\begin{block}{A Block}
Some text
<<label=sweave, include=TRUE, echo=TRUE>>=
x<-rnorm(100,mean=100,sd=15)
print(x)
@
\end{block}
\end{column}
\end{columns}
\end{frame}
\end{document}
but this doesn't work. Has anyone else done this ? Any ideas ?
Thanks
Paul.
More information about the R-help
mailing list