Does any one have a code snippet of how to create a download link for a file that I create using markdown in my shiny app?
Currently I am creating html report and rendering it in my shiny app using renderUI like so
rmarkdown::render("report.Rmd", output_file = "test.html", params = my_params, envir = new.env(parent = globalenv()) ) box( includeHTML("test.html") )
Now, I would like to give an option to download the same report as a word document but am having a block on how best to accomplish it.
Any pointers would be much appreciated,