If you upload a workbook that contains R functionality to the Tableau server, then the Tableau server must have a connection to an Rserve server. See R Connection, in the Tableau Desktop help, for details.
In this section, we will install, run, and configure Rserve.
Open RStudio and go to the Install Packages tab on the interface.
In the Packages textbox, type
Rserveand click OK.
Rserve will install, and you will see the output messages in the RStudio Console. When it is finished, you will see the chevron again.
Now, open Control Panel on the server, and search for environment variable in the search box.
Click on the Edit the System Environment Variables option.
Add a new variable to the PATH variable path. Add the directory containing
R.dllto your path environment variable. For example,
You should see the new path in the Edit Environment Variable window. You can see a sample image here:
In RStudio, let's call Rserve by running the following command in the RStudio Console:
On the Help menu in Tableau Desktop, choose Settings and Performance | Manage R Connection to open the Rserve connection dialog box.
Enter or select a server name using a domain name or an IP address.
Specify a port (Port 6311) is the default port for Rserve servers.
If the server requires credentials, specify a username and password.
Click Test Connection.