Trident Function to be able to call R functions within a Trident Topology