\usepackage{Sweave}
\usepackage{color}
\usepackage{graphics}
\usepackage{latexsym, amsmath, amssymb}

%% simple macros
\newcommand{\R}{\textsf{R}}
\newcommand{\Bioconductor}{\textsf{Bioconductor}}
\newcommand\Rpackage[1]{{\textsf{#1}\index{#1 (package)}}}
\newcommand\Rclass[1]{{\textit{#1}\index{#1 (class)}}}
\newcommand\Rfunction[1]{{{\small\texttt{#1}}\index{#1 (function)}}}
\newcommand\Rfunarg[1]{{\small\texttt{#1}}}
\newcommand\Robject[1]{{\small\texttt{#1}}}
\newcommand\code[1]{{\small\texttt{#1}}}

%% beamer
%% \mode<presentation>
%% {
%%   \usetheme{progressbar}
%% }

\AtBeginSection[]
{
  \begin{frame}<beamer>{Outline}
    \tableofcontents[currentsection,currentsubsection]
  \end{frame}
}
