I am running the following code to connect to H2O in R and getting the output below:
 h2o.init(nthreads=-1, max\_mem\_size = paste(x,"g", sep = ""))

```
R is connected to the H2O cluster: 
H2O cluster uptime:         3 minutes 57 seconds 
H2O cluster version:        3.14.0.3 
H2O cluster version age:    3 days  
H2O cluster name:           H2O_started_from_R_rami_krispin 
H2O cluster total nodes:    1 
H2O cluster total memory:   0.88 GB 
H2O cluster total cores:    4 
H2O cluster allowed cores:  4 
H2O cluster healthy:        TRUE 
H2O Connection ip:          localhost 
H2O Connection port:        54321 
H2O Connection proxy:       NA 
H2O Internal Security:      FALSE 
H2O API Extensions:         Algos, AutoML, Core V3, Core V4 
R Version:                  R version 3.4.1 (2017-06-30) 

```

Is there a way to capture into boolean variable whatever the connection was successful (something like `is.h2o.connect()` with response of True/False) and the attribute of the connection into variable? For example:

```
x$port
>54321

```

or

```
x$memory
>0.88 GB

```

Thank you in advance!
Rami