Added check for knitr in installed pkgs