amplab-extras/SparkR-pkg — pull request #55 by piccolbo (2014-05-21 00:01:21+00:00)
Title: delay object loading to avoid namespace issues

By loading objects before packages have been loaded, if an object is a function that needs a private object in one of those packages, e.g. a private function, said object will be unavailable. You can see a warning that the package was not available and its namespace have been replaced by globalEnv. Reproducing the error is fairly complex, as I discovered it developing a package that depends on SparkR and has private functions that are called in the SparkR worker as part of the map function (plyrmr, spark branch). Let me know if you absolutely need to repro the error or can accept the patch based on the above argument.