Code to create knitr report with shiny application