I think I have isolated a problem with integration between Sweave and beamer.
Could you please see the file:
http://www.mayin.org/ajayshah/tmp/bugdemo.Rnw
Unfortunately, it uses some of my internal libraries, so you can't run
it. When I put it through Sweave, I get:
Ajay Shah wrote:
I think I have isolated a problem with integration between Sweave and beamer.
Sweave makes a lot of use of verbatim environments, and beamer doesn't
like those. You need to declare that a slide contains verbatim or you
get errors like that.
I'm sure there are other ways
Hi,
I used the following Sweave code for text output (worked for me):
--- code
\documentclass{beamer}
\usepackage{beamerthemesplit}
\usepackage[latin1]{inputenc}
\usepackage{ngerman}
\usepackage{psfrag}
\usepackage{graphicx}
\setbeamercovered{transparent}
\SweaveOpts{echo=true}
Sweave makes a lot of use of verbatim environments, and beamer doesn't
like those. You need to declare that a slide contains verbatim or you
get errors like that.
I'm sure there are other ways to do this, but one that works is to use
\begin{frame}[containsverbatim]
at the start of