Migrated from Sweave to knitr