knitr fails in compiling