Skip to content

Commit

Permalink
Merge pull request #233 from redbaron/fail-early-on-missing-dep
Browse files Browse the repository at this point in the history
Fail worker early if dependency is missing
  • Loading branch information
shivaram authored and Davies Liu committed Apr 14, 2015
1 parent 7dd81b7 commit 8b76e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg/inst/worker/worker.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ serializer <- SparkR:::readString(inputCon)
# Include packages as required
packageNames <- unserialize(SparkR:::readRaw(inputCon))
for (pkg in packageNames) {
suppressPackageStartupMessages(require(as.character(pkg), character.only=TRUE))
suppressPackageStartupMessages(library(as.character(pkg), character.only=TRUE))
}

# read function dependencies
Expand Down

0 comments on commit 8b76e81

Please sign in to comment.