I am trying to find distance between two points using ggmap in Tableau. I get an error that the result returned by the script is of an unknown type. I tried using SCRIPT_STR() but that does not work as well. Below is a sample test code I am trying to use.
SCRIPT_REAL("library('ggplot2');library('ggmap');mapdist('11040',.arg1)[5]",'10041')