Example code for displaying a matrix (or table or dataframe) using a combination of

knitfoo.Rnw.txt : readable version of knitfoo.Rnw

knitfoo.Rnw: What you run

knitfoo.tex

knitfoo.pdf

An Sweave example of roughly the same thing