So far we have been playing with shiny, knitr, and markdown files to develop interactive applications and reproducible reports. In this recipe, you will learn how to generate a report with knitr and rmarkdown dynamically, and download at the click of a button from the Shiny app.
Generating dynamic reports
Getting ready
Download the files for this chapter, navigate to the DynamicReport folder, and set it as your R working directory. The DynamicReport folder has three files:
- app.R: This is the simple Shiny app file containing both ui and server code
- report.Rmd: This is the markdown file to generate downloadable dynamic reports based on the parameter passed from the Shiny app
- auto-mpg.csv: This data will be used to generate...