Skip to content

Commit

Permalink
Merge pull request apache#55 from RevolutionAnalytics/master
Browse files Browse the repository at this point in the history
delay object loading to avoid namespace issues
  • Loading branch information
shivaram committed Jul 13, 2014
2 parents e1f95b6 + 86f30c3 commit 388e64d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/inst/worker/worker.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ if (depsLen > 0) {
depsFile <- file(depsFileName, open="wb")
writeBin(execFunctionDeps, depsFile, endian="big")
close(depsFile)

load(depsFileName)
unlink(depsFileName)
}

# Include packages as required
Expand All @@ -57,6 +54,11 @@ for (pkg in packageNames) {
suppressPackageStartupMessages(require(as.character(pkg), character.only=TRUE))
}

if (depsLen > 0) {
load(depsFileName)
unlink(depsFileName)
}

# Read and set broadcast variables
numBroadcastVars <- readInt(inputCon)
if (numBroadcastVars > 0) {
Expand Down

0 comments on commit 388e64d

Please sign in to comment.