I have a csv file already on the server that contains some information, and my application has to do the following:
- when the user connects, a reactiveValues key is populated with the content of the csv file.
- from that moment on, the user modifies the reactiveValues key contents and triggers ordinary events, but in no circumstance I want to accidentally retrieve again from the csv.
It is not clear how this is meant to be done in shiny. If I had a button "load data", it would be trivial to connect an observe to it and perform the operation, reading from the csv and pushing the information in the reactiveValues, but I am not aware of any "on first connection" options in the session object.
Of course this assignment needs to be done in a reactive context, otherwise shiny will complain.
What is the proper way of addressing this use case in Shiny?