Skip to content

Commit f00761e

Browse files
author
anqi
committed
Install h2oRClient to temp directory on Linux
1 parent ab7088f commit f00761e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

R/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ endif
5959
# cp -p PACKAGES.gz ../lib/resources/R/src/contrib/PACKAGES.gz
6060

6161
# Build binary for each OS
62+
ifeq ($(shell uname), Linux)
63+
R CMD INSTALL -l $(TMP) --build h2oRClient-package
64+
else
6265
R CMD INSTALL --build h2oRClient-package
66+
endif
6367

6468
ifneq ($(OS),Windows_NT)
6569
tar zxvf h2oRClient_$(PROJECT_VERSION).tgz

R/h2oRClient-package/R/Internal.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ h2o.__waitOnJob <- function(client, job_key, pollInterval = 1, progressBar = TRU
261261
if(progressBar) {
262262
pb = txtProgressBar(style = 3)
263263
tryCatch(while((prog = h2o.__poll(client, job_key)) != -1) { Sys.sleep(pollInterval); setTxtProgressBar(pb, prog) },
264-
error = function(e) {cat("Polling fails: ",e)},
264+
error = function(e) { cat("Polling fails: ", e) },
265265
finally = h2o.__cancelJob(client, job_key))
266266
setTxtProgressBar(pb, 1.0); close(pb)
267267
} else

0 commit comments

Comments
 (0)