4
votes

I'm making an R notebook with H2O and I don't want the H2O "Connection Successful" message and accompanying info (see below) to show.

Connection successful!

R is connected to the H2O cluster:

H2O cluster uptime:

H2O cluster version:

H2O cluster version age:

H2O cluster name:

H2O cluster total nodes:

H2O cluster total memory:

H2O cluster total cores:

H2O cluster allowed cores: 4

H2O cluster healthy:

H2O Connection ip:

H2O Connection port:

H2O Connection proxy:

H2O Internal Security:

R Version:

I would appreciate any help!

2

2 Answers

2
votes

You can set include=FALSE in the chunk options. That should prevent any output from printing.

```{r include=FALSE}
h2o.init()
```
1
votes

If you want to suppress all R output, you can use the sink() function. Here is how that would look with h2o.init():

> library(h2o)
> sink("/dev/null") 
> h2o.init()
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)