Prototyping a RPC mechanisms from Haskell to R