I uploaded an app into Shiny apps io. The user imports csv data, the app reads in the data, and performs graphics and statistical measures. The app does not have code that will delete all objects after the browser is closed or after the user enters another website within the same browser session. I need to ensure that no data is left in the Shiny server after the browser is closed or after the user enters another website within the same browser session. With this, I have the following questions.
Q1: app ran locally
- I noticed that no objects are shown in the Global Environment when the app is ran locally, so if the Global Environment is empty, where are the objects stored?
Q2: app ran in shinyapps.io
2) After an object is created when reading the data as read.csv(imported_data), is the data object automatically deleted when the browser is closed? If not, where does the data object go to?
Q3: app ran in shinyapps.io
3) Do I need to add code to delete these data objects? I see at least two options here:
3.1) Use rm(data_object) to remove the objects but not make this reactive until the user completes the work flow
3.2) Add UI message to the user to click a button to remove all objects before existing the app. To prevent the UI forgetting to remove objects:
3.2.1) When the user attempts closing the browser, a message will be displayed to remind him/her to click the data remove button
3.2.2) When the user attempts to moving forward into another website within the same browser session, a message will be displayed to remind him/her to click the data remove button (I do not know if this is possible).
Is there any “easy” way to handle sensitive imported data?
I appreciate your help.