For loops with knitr.