Tableau
has the following four functions to communicate with R:
SCRIPT_REAL()
SCRIPT_BOOL()
SCRIPT_STR
()
SCRIPT_INT()
These functions require that R returns a specific
value of type REAL/INT/BOOL/STR, which Tableau will then display.
Note:-
SCRIPT functions in Tableau are Table
Calculations and that once you place them in the view, you will need to
right-click on their pills and change their “Compute Using” option
Thanks Guru's,
Prazval.ks