Producing the final output with knitr