tentative fix for amplab-extras/SparkR-pkg#53