Skip to content

Commit

Permalink
Don't even allow H2O to run with R 3.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkraljevic committed Dec 19, 2014
1 parent 0007968 commit 8ea863e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/h2o-package/R/Wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ h2o.init <- function(ip = "127.0.0.1", port = 54321, startH2O = TRUE, forceDL =
if(!is.null(ice_root) && !is.character(ice_root)) stop("ice_root must be of class character")
if(!is.logical(strict_version_check)) stop("strict_version_check must be of class logical")

if ((R.Version()$major == "3") && (R.Version()$minor == "1.0")) {
warning("H2O is specifically not compatible with this exact")
warning("version of R 3.1.0.")
warning("Please change to a newer or older version of R.")
warning("(For technical details, search the r-devel mailing list")
warning("for type.convert changes in R 3.1.0.)")
stop("R 3.1.0 is not compatible with H2O!")
}

if(!missing(Xmx)) {
warning("Xmx is a deprecated parameter. Use `max_mem_size` and `min_mem_size` to set the memory boundaries. Using `Xmx` to set these.")
max_mem_size <- Xmx
Expand Down

0 comments on commit 8ea863e

Please sign in to comment.