\documentclass[11pt]{article} \title{My First Sweave Document} \begin{document} \maketitle This is some text (i.e. a ``text chunk''). Here is a code chunk <<>>= set.seed(1) x <- rnorm(100) mean(x) @ \end{document}