Skip to content

Commit

Permalink
Merge pull request #4 from felixcheung/r-require
Browse files Browse the repository at this point in the history
[SPARKR-241] Update R to fail early if SparkR package is missing
  • Loading branch information
shivaram committed Mar 30, 2015
2 parents c300e08 + 11981b7 commit 1d1802e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/pkg/inst/profile/shell.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
.libPaths(c(file.path(home, "R", "lib"), .libPaths()))
Sys.setenv(NOAWT=1)

require(utils)
require(SparkR)
library(utils)
library(SparkR)
sc <- sparkR.init(Sys.getenv("MASTER", unset = ""))
assign("sc", sc, envir=.GlobalEnv)
sqlCtx <- sparkRSQL.init(sc)
Expand Down

0 comments on commit 1d1802e

Please sign in to comment.