shiny-server

Interactive directory input in Shiny app (R)

强颜欢笑 提交于 2019-11-26 12:56:42
问题 I am building a shiny app that requires a user to select a folder on the local machine, which contains the files to be processed by the app. I am using a solution proposed here. This works fine on a local machine, but does not work if the app is deployed to a shinyapps server. The author of this solution confirmed that it was only designed to work with local Shiny apps, since it makes OS shell calls to display a directory dialog. I am wondering if there is a different solution for directory

Shiny: what is the difference between observeEvent and eventReactive?

ⅰ亾dé卋堺 提交于 2019-11-26 08:02:48
问题 I read the Shiny documentation about reactive programming a few times now, but I can\'t properly understand the difference between observeEvent and eventReactive . The documentation says: Use observeEvent whenever you want to perform an action in response to an event. (Note that \"recalculate a value\" does not generally count as performing an action–see eventReactive for that.) .... Use eventReactive to create a calculated value that only updates in response to an event. This is just like a