There was an excellent post on lukemiller.org about using R and knitr to make handouts/lab assignments/documents integrating R code, R output, and narrative text. Click that link to learn how to control what gets shown to whom. Besides being useful in this context, using R...