Join Ben Sullins for an in-depth discussion in this video Run RServe and connecting Tableau, part of Integrating Tableau and R for Data Science.
- [Instructor] So now let's take a look at how to integrate R in Tableau. So in R, we need to load up the RServe package. So if you haven't done so already, you'll have to go install that. But once you have it installed, you simply need to type library and then rserve and then call it by typing rserve open and closed parentheses and it then starts the service essentially. Then I'll go into Tableau and from here, I need to go to Help, Settings and Performance, Manage External Service Connection.
Make sure I'm on local host and port 6311 and then test the connection. You should get a message that it says, successfully connected to the RServe service. So previous to 10.1, the version actually said External R Connection instead of External Service Connection and so that's the main difference here. So now you're potentially, you can connect to Python instances and run Python scripts, which we won't get into in this course, but that's one of the key kind of semantic differences is that if you're looking for those old functions that were all about connecting to R, there're now just connecting to an external service.
- Where Tableau shines
- When R is the best option
- Installing Tableau, R, and Rserve
- Running Rserve and connecting Tableau
- Basic scripting in R
- Importing data to Tableau
- Linear regression
- Setting up R on Tableau Server
- Publishing your work
- Editing calculations