updated knitr code for installing packages