Integrate R with Apache Spark