Generate commands for knitr