added Distributed R platform code