R Shiny: Use Onclick Option of Actionbutton on the Server Side
问题 I want to make a Shiny App in which the user can press an actionbutton which would then trigger some code on the server side creating a file in the www folder and then opens/downloads the file. Suppose the file is test.txt (in my case it would be a variety of R, Excel, and exe files which will be copied from different folders on a drive to the www folder). My first try was to use the actionbutton with the onclick option as shown below ui <- fluidPage( actionButton("showtxt", "Show/Download