Fixed a nasty crash caused by not having library(knitr) in the first r-chunk when using Rmarkdown