01 Oct How to integrate R with Tableau
There are many languages used in the world of data analysis and R, as you probably just guessed, is one of them. According to Wikipedia, R is a language mostly used by statisticians and data miners to build statistical software and data analysis. Integrating R with Tableau will help you take advantage of R functions, packages and even models. Read on to find out how to integrate R with Tableau.
Before integrating R with Tableau, it is important that you have both R and RStudio installed on your computer.
To download and install R, visit www.cran.r-project.org/bin/windows/base/. For R studio, you can click here. It is important that you have both installed, because their individual functionalities depend on each other.
Now, that you have both tools installed, let us proceed to set up Rserve. In case you have been wondering, “how EXACTLY am I going to integrate R with Tableau?” Rserve is the missing link, so let’s get right to it.
Step 1: Launch your RStudio.
Step 2: Type in “Install.packages(“Rserve”)” and hit the enter button on your keyboard. This process will install Rserve
Step 3: Type “library(Rserve)” and hit the enter button to call the Rserve packages
Step 4: Finally, type “Rserve()” to start R-Server.
From the image below, you can see a walkthrough of all the steps I just listed.
The next phase of integrating R with Tableau is going to be carried out on your Tableau Desktop.
Open up your Tableau desktop, select Help in the top menu bar to display a dropdown menu. Click on Setting and performance, and select the “Manage external services” option as shown below:
Fill in the same credentials (Server: Localhost, Port: 6311) as shown below and click Test connection.
Once the connection is successful, then it means that you have completely integrated R with Tableau
No Comments