Installation
pkgs <- c("RCurl","jsonlite", "tidyverse")
for (pkg in pkgs) {
if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) }
}
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R")))
Installing package into ‘/work/.R/library’
(as ‘lib’ is unspecified)
Initialization
After H2O initializes you can enable "Allow incoming connections" and go to your notebook URL.
library(h2o)
localH2O = h2o.init(port = 8080, bind_to_localhost = FALSE)
----------------------------------------------------------------------
Your next step is to start H2O:
> h2o.init()
For H2O package documentation, ask for help:
> ??h2o
After starting H2O, you can use the Web UI at http://localhost:54321
For more information visit https://docs.h2o.ai
----------------------------------------------------------------------
Attaching package: ‘h2o’
The following objects are masked from ‘package:stats’:
cor, sd, var
The following objects are masked from ‘package:base’:
&&, %*%, %in%, ||, apply, as.factor, as.numeric, colnames,
colnames<-, ifelse, is.character, is.factor, is.numeric, log,
log10, log1p, log2, round, signif, trunc
H2O is not running yet, starting it now...
Note: In case of errors look at the following log files:
/tmp/RtmpQrPhcV/file716d64933d/h2o_UnknownUser_started_from_r.out
/tmp/RtmpQrPhcV/file71273ded52/h2o_UnknownUser_started_from_r.err
Starting H2O JVM and connecting: ... Connection successful!
R is connected to the H2O cluster:
H2O cluster uptime: 2 seconds 108 milliseconds
H2O cluster timezone: Etc/UTC
H2O data parsing timezone: UTC
H2O cluster version: 3.36.0.3
H2O cluster version age: 5 days
H2O cluster name: H2O_started_from_R_root_zvs787
H2O cluster total nodes: 1
H2O cluster total memory: 1.17 GB
H2O cluster total cores: 2
H2O cluster allowed cores: 2
H2O cluster healthy: TRUE
H2O Connection ip: localhost
H2O Connection port: 8080
H2O Connection proxy: NA
H2O Internal Security: FALSE
R Version: R version 4.0.4 (2021-02-15)