[SPARKR-144] Implement saveAsTextFile() in the RDD class.