Last active
March 19, 2018 20:43
-
-
Save alexpghayes/88499a43040e3a720f7ad185341ebae9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following two commands remove any previously installed H2O packages for R. | |
if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) } | |
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") } | |
# Next, we download packages that H2O depends on. | |
pkgs <- c("statmod","RCurl","jsonlite") | |
for (pkg in pkgs) { | |
if (! (pkg %in% rownames(installed.packages()))) { install.packages(pkg) } | |
} | |
# Now we download, install and initialize the H2O package for R. | |
install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R"))) | |
# Finally, let's load H2O and start up an H2O cluster | |
library(h2o) | |
h2o.init() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment