I've got a bunch of R scripts that read in a data from various sources, perform all the analyses needed and makes some visualisations. Now I need to pass the visualisation part over to Tableau and prepare the whole dashboard in the latter.
From what I know I could save all the data.frames to .Rdata files and load them in Tableau, but it seems to be cumbersone in the long run, while the whole program should be automated as far as possible.
The second option I got to know is to read data in Tableau, connect to R via Rserve and call simple R scripts from Tableau. It would be an option, but:
- R scripts can't be fully automated - they require some interaction with the user, it is the user who has to control the analysis and it should be left as that
- my scripts do so much data cleaning and wrangling that I think it's better to leave this job separately in R
So my question is what is the best way to integrate R and Tableau so that after I perform all the analysis in R I could only update the data in prepared earlier Tableau dashboard with few plots?