load knitr before using knit_expand(), otherwise R CMD check won't be able to run the tangled code