add SparkR code