I have the following situation/workflow:
- The user utilizes Tool A to capture sensor data and save it to a CSV file.
- The user takes the CSV and uploads it to a R Shiny Applications (using
fileInput
) to process it further.
I would like to get rid of the intermediate CSV and directly open the Shiny application with the data already loaded. I.e. I need a way to transfer the contents of the CSV automatically to the Shiny application.
What could work:
- Tool A stores the CSV in a special location that is served by a HTTP server on a fixed endpoint.
- The Shiny application requests the file from the known location on startup.
However, this still needs the intermediate CSV file, and adds complexity by introducing an additional server (or at least endpoint). Furthermore it needs additional logic if multiple users are active / multiple files are created at the same time. So it is far from ideal.
Is there any way to get the contents of the CSV directly from Tool A to the Shiny Application? E.g. by mimicking the messages the 'fileInput' widget produces?