Is there any way to get realtime data updates inside Rstudio IDE, e.g. using mqtt and data frames!?
Not on the IDE as far as I know but you can certainly get mqtt messages on a shiny app for example, which could give you near real-time reactivity, also, if your data comes from a device that accepts serial connections you can take a look at this post
Thank you so much for your answer. Regarding the Shiny option I imagine that this could be an option for many. For me, I am using mqtt in javascript already. However, I would like to specifically perform on the fly data analysis using the R Studio IDE...as soon as the data is available to R Studio desktop.
I don't quite understand your specific use case, can you give a concrete example of your workflow or at least elaborate a little?
Note: Please bear in mind that I am not an expert in R or Shiny, and therefore I might not be aware of some of the existent packages or realtime data handling possibilities
Workflow:
I hope I was clear enough in my explanation and that it makes sense at all...
If the analysis is going to be manual as you said I see no point on having the data loaded on the IDE on real time (And as far as I know this is not supported on the IDE), you could simply get notified and execute a script to load the data into your R session when you start doing the manual analysis. Obviously I don't know enough about your actual application to make a fair judgment but it seems you are envisioning an unnecessarily complicated workflow.
Thank you so much for your feedback @andresrcs Yes, it is true and I am currently already using a manual integration procedure anyway. The reasoning for me is that the data analysis research and experimentation (and because I am using realtime messages and MQTT) should be a step that I could do at any time without the need to store data, other than transferring it directly from MQTT to R Studio IDE. Setting up Shiny can also be costly and an unnecessary step in this very specific case.
You could probably use the later package.
Unnecessary, probably, but costly, not necessarily, if you don't require a lot of computation power you can have it set up for free or for very little money.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.