Reload resources with every run of Shiny app

shiny
#1

In the inst/www/ folder of my package which is a Shiny application, I have a data.txt file which is loaded and used by the UI. However, when i make changes to data.txt and save them, I have to run devtools::reload() and devtools::install() in order to apply the changes so that they are visible for the app. When merely re-running the app, the changes are not applied and accessing http://localhost/data.txt shows the old version of the file.

Is there a possibility that the resources are automatically reloaded/updated with every run of the Shiny app?

0 Likes

#2

Hi @drzamich, this sounds like an issue introduced by shiny v1.3, see here for more info -- https://github.com/rstudio/shiny/issues/2389

0 Likes