#rstats Anyone out there know Shiny? I’m having a weird dashboard issue - I need a drop-down list of files in my dashboard UI, and I’m not able to make it update in real time (it’s often hours or days behind the actual files in the directory). I’m currently just using a list.files() command in selectInput, but it doesn’t update in real time and it’s driving me nuts.
Im thinking I should somehow make a reactive list in the server code, but I can’t figure out how to make it work… #rstudio #shiny
@DenverComicGuy the UI is generated each time the app is “started” on the server, not each time a user loads the page. You need to use updateSelectInput from the server function to tie the event to update each time the user visits the app (or refreshes the page)
@tanho Yes! Thanks, this gives me an avenue for googling and fixing. I was often manually crashing and restarting the server to force the selection list to update - very bad design on my part. Thank you!!!!!