'How to save and restore a user session in R shiny

For my shiny app I would like to add the possibility for the user to save his session and restore it later. I managed to implement functions that lets the user save .RData in a mongoDB database and upload it again.

However, simply loading the .RData with base::load() doesn't seem to work.

I assume I somehow have to enter the session$input and session$output variables somewhere?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source