I am trying to use some functions that I created in R but failed. I already done:
- source the .R file that includes my function
- load Rserve library and Rserve() function in R
- connect Rserve in Tableau
Currently, I can use some R's built-in functions like mean() in tableau with SCRIPT_REAL. However, when I use the function that I created by myself in R (let's say add1() ), it turns out the error "Error in add1.default(.arg1) : no terms in scope".
There are several supporting examples located on Bora Beran's web blog - R | Bora Beran - you might want to review those as a starting place for assistance. Let us know if you need additional assistance.