Stat 506 knitR

knitr requires R 2.14.0 or better.
It will be supported in the next version of RStudio

install.packages('knitr', dep=T)
require(knitr)
knit("myfile.Rnw")             ## build   myfile.tex
system("pdflatex myfile.tex")  ## process it to make the pdf
purl("myfile.Rnw")             ## extract R code into myfile.R

Options

knitR website