app doesn't save the work after close the app, wait some time and open it again

Hi everyone, I've developed an app that basically write rows in a table. The table is downloaded as an excel file and it works well. The problem is when the app is close and then you wait some time and open it again, the rows are gone. I'm using openxlsx library to read and write.
If you open and close de app immediately, there is no problem.

Regards,

KM

your shiny app on the shinyapps.io platform write rows in a table, presumable in memory.
'the table is downloaded as an excel file' , you have a downloadhandler and you write the table out to an excel file that your browser lets you download to your computer?

Without you providing a backend of data storage your app's 'changes' would be impermanent.
https://docs.rstudio.com/shinyapps.io/Storage.html#understanding-the-storage-lifecycle
https://shiny.rstudio.com/articles/persistent-data-storage.html

Hi @nirgrahamuk, thank you for supporting me. The download process works well, I'm using a download button.
Checking the links, thats what I need: Persistent data storage in Shiny apps!!!
I think I'm going to use the method to store Arbitrary data.

Thank you again, I really appreciate your support and kindness. You made my day!

Regards,

KM

1 Like