In my Shiny Dashboard App, the user has the option of processing and downloading a PDF report. (The report is written for Sweave and the processing uses knitr and text2pdf.) This functionalist is triggered with a downloadButton and a downloadHanfler. When the button is clicked, Chrome opens up a new browser tab for the duration of the processing.
I have read on Stack Overflow and elsewhere that this behavior is caused by an inclusion of a "target='_blank'" tag in the HTML code associated with the button. Is there a way to disable this tag?