h2o.init(ip = "127.0.0.1", port = 54321, startH2O = TRUE, forceDL = FALSE, Xmx = "1g",
beta = FALSE, license = NULL)
"character"
representing the IP address of the server where H2O is running."numeric"
representing the port number of the H2O server.ip = "localhost"
or ip = "127.0.0.1"
.h2o/java/h2o.jar
.H2OClient
object containing the IP address and port number of the H2O server. See the ??h2o
in the R console.startH2O = TRUE
with IP of localhost, it will attempt to start an instance of H2O with IP = localhost, port = 54321. Otherwise, it stops immediately with an error.
When initializing H2O locally, this method searches for h2o.jar in the R library resources (system.file("java", "h2o.jar", package = "h2o")
), and if the file does not exist, it will automatically attempt to download the correct version from Amazon S3. The user must have Internet access for this process to be successful.
Once connected, the method checks to see if the local H2O R package version matches the version of H2O running on the server. If there is a mismatch and the user indicates she wishes to upgrade, it will remove the local H2O R package and download/install the H2O R package from the server.h2o.shutdown
# Try to create a localhost connection to H2O.
localH2O = h2o.init()
localH2O = h2o.init(ip = "localhost", port = 54321)
localH2O = h2o.init(ip = "localhost", port = 54321, startH2O = FALSE)
Run the code above in your browser using DataLab