Created
August 18, 2015 00:06
-
-
Save ledell/ae5ee833fc3f70b29b7c to your computer and use it in GitHub Desktop.
Install h2o R package (Simons release)
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
# Also available here: http://h2o-release.s3.amazonaws.com/h2o/rel-simons/7/index.html#R | |
# 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. | |
if (! ("methods" %in% rownames(installed.packages()))) { install.packages("methods") } | |
if (! ("statmod" %in% rownames(installed.packages()))) { install.packages("statmod") } | |
if (! ("stats" %in% rownames(installed.packages()))) { install.packages("stats") } | |
if (! ("graphics" %in% rownames(installed.packages()))) { install.packages("graphics") } | |
if (! ("RCurl" %in% rownames(installed.packages()))) { install.packages("RCurl") } | |
if (! ("rjson" %in% rownames(installed.packages()))) { install.packages("rjson") } | |
if (! ("tools" %in% rownames(installed.packages()))) { install.packages("tools") } | |
if (! ("utils" %in% rownames(installed.packages()))) { install.packages("utils") } | |
# 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/rel-simons/7/R"))) | |
library(h2o) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment