Files
shiny/inst/examples/10_download

We can add a download button to the UI using downloadButton(), and write the content of the file in downloadHandler() in server.R. See the tutorial for more details.