Unable to install h2o R package

2,164 views
Skip to first unread message

aut...@gmail.com

unread,
Jun 21, 2016, 3:11:22 PM6/21/16
to H2O Open Source Scalable Machine Learning - h2ostream
I am using RStudio .99.902 with R version 3.3.0 (2016-05-03)

I am trying to install the h2o package for 3.8.2.9 following the instructions at:
http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/9/index.html

when I get to the install packages line, I the error message below. I can use the cran install (install.packages("h2o")), but it installs the wrong version (3.8.2.6) and the libraries don't seem to work. Same error happens when not using R Studio

H2O VERSION: 3.8.2.9
OS: WINDOWS 7
LANGUAGE: R
CODE AND ERROR MESSAGE:

install.packages("h2o", type="source", repos=(c("http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/9/R")))

Installing package into ‘\\cable.comcast.com/corp-dfs/CHQ-Contractor/kdaile001c/My Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/9/R/src/contrib/h2o_3.8.2.9.tar.gz'
Content type 'application/x-tar; charset=binary' length 54629364 bytes (52.1 MB)
downloaded 52.1 MB

* installing *source* package 'h2o' ...
** R
** demo
** inst
** preparing package for lazy loading
Creating a generic function for 'summary' from package 'base' in package 'h2o'
Warning in file(con, "r") :
cannot open file '\\cable.comcast.com/corp-dfs/CHQ-Contractor/kdaile001c/My Documents/R/win-library/3.3/h2o/branch.txt': No such file or directory
Error in file(con, "r") : cannot open the connection
Error : unable to load R code in package 'h2o'
ERROR: lazy loading failed for package 'h2o'
* removing '\\cable.comcast.com/corp-dfs/CHQ-Contractor/kdaile001c/My Documents/R/win-library/3.3/h2o'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "\\cable.comcast.com\corp-dfs\CHQ-Contractor\kdaile001c\My Documents\R\win-library\3.3" C:\Users\KDAILE~1\AppData\Local\Temp\Rtmp6rkdq7/downloaded_packages/h2o_3.8.2.9.tar.gz' had status 1
Warning in install.packages :
installation of package ‘h2o’ had non-zero exit status

Merbert Ancriwalli

unread,
Jun 22, 2016, 9:35:00 AM6/22/16
to H2O Open Source Scalable Machine Learning - h2ostream, aut...@gmail.com
I've had exactly this same issue with a couple of versions of the tgz file.

I never fully tracked this down as I didn't have time, but I managed to work out it was possibly a UAC issue or a long file names issue


On Tuesday, 21 June 2016 20:11:22 UTC+1, aut...@gmail.com wrote:
I am using RStudio .99.902 with R version 3.3.0 (2016-05-03)

<snipped for conciseness>

aut...@gmail.com

unread,
Jun 22, 2016, 10:41:45 AM6/22/16
to H2O Open Source Scalable Machine Learning - h2ostream, aut...@gmail.com
That makes sense. I can try installing it on my home pc where i wont have such a long folder structure and have admin privileges

Matthew Landowski

unread,
Jun 22, 2016, 12:27:58 PM6/22/16
to H2O Open Source Scalable Machine Learning - h2ostream, aut...@gmail.com
Try downloading the *.tar.gz from http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/9/R/src/contrib/h2o_3.8.2.9.tar.gz and then do the following.

Windows
open R

install.packages("<paht-to-file>/h2o_3.8.2.9.tar.gz", repos=NULL, type="source")


Linux
wget http://h2o-release.s3.amazonaws.com/h2o/rel-turchin/9/R/src/contrib/h2o_3.8.2.9.tar.gz
R CMD INSTALL h2o_3.8.2.9.tar.gz
Reply all
Reply to author
Forward
0 new messages