Make knitr optional.