Abstract: The function Sweave allows an R user to create LATEX code within R. Most studies discussing Sweave cover how to use Sweave for updating LATEX code within R for a single example. There is a R package called exams which allows teachers to create unique exams for students. There has been little research however, on how to leverage the function Sweave and other basic commands in R in order to easily offer students a virtually unlimited supply of statistical example problems to study from within a single PDF file. This study covers how to create a multitude of examples for each problem type covered in a statistical class.