[SPARKR-164] Temporary files used by SparkR accumulat as time goes on.

https://sparkr.atlassian.net/browse/SPARKR-164

Verified that no temp file was left after running the pi example.