Skip to content

Commit

Permalink
Update R to fail early if SparkR package is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcheung committed Mar 30, 2015
1 parent c300e08 commit 11981b7
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 11981b7

Please sign in to comment.