Making Nice Slides Using Beamer and Sweave:
HoExample4.pdf
The Rnw file that generate the slides:
HoExample4.Rnw
The files for building an R package:
Rpackage.zip