完全に忘れましたR Sweave! RStudioでR Sweave形式を使用して目標を達成する機能的な例を次に示します。
\documentclass[usepdftitle=false]{beamer}
\usetheme{boxes}
\usecolortheme{seahorse}
\title{Test}
\author{Silas Tittes}
\institute{\normalsize University of Colorado Boulder}
\date{\today}
\begin{document}
\SweaveOpts{concordance=TRUE}
\frame{
\hypersetup{pdfpageduration=2} %2 seconds
\titlepage
}
\begin{frame}[fragile]{Example Slide}
\hypersetup{pdfpageduration=2} %2 seconds
\begin{columns}
\begin{column}{0.4\linewidth}
\begin{itemize}
\item R includes a powerful and flexible system (Sweave) for creating dynamic reports and reproducible research using LaTeX.
\item Warning, more time will be spent tinkering with options than you ever thought would be possible.
\end{itemize}
\end{column}
\begin{column}{0.7\linewidth}
<<mtcarsplot, fig=TRUE, echo=FALSE>>=
par(cex.lab = 2.2, cex.axis = 1.5, mar = c(5,5,1,2))
plot(x = mtcars$mpg, y = mtcars$wt,
cex = 2.5*mtcars$hp/max(mtcars$hp), pch = 19,
xlab = "Car weight", ylab = "MPG")
@
\end{column}
\end{columns}
\end{frame}
\end{document}