dai.connect.RdConnects to Driverless AI platform and authenticates the session. This needs to be called at the beginning of every session.
dai.connect(uri, username, password, force_version = TRUE, ...)
| uri | The Driverless AI URI address, e.g. http://foo.com:12345. |
|---|---|
| username | Username. |
| password | Password. |
| force_version | Whether to fail if package and server versions mismatch. |
| ... | Named options passed over to RCurl. |
# NOT RUN { dai.connect(uri = 'http://127.0.0.1:12345', username = 'h2oai', password = 'h2oai') # If you experience issues with connecting via HTTPS using e.g. a self-signed certificate, # you can set additional CURL options: # }# NOT RUN { dai.connect(uri = 'https://127.0.0.1:12345', username = 'h2oai', password = 'h2oai', ssl.verifypeer = FALSE, ssl.verifyhost = FALSE) # }# NOT RUN { # For more information about the options see: # https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html # https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html # }