dai.connect.Rd
Connects 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 CURL options (see Examples). |
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: if (FALSE) { dai.connect(uri = 'https://127.0.0.1:12345', username = 'h2oai', password = 'h2oai', ssl_verifypeer = FALSE, ssl_verifyhost = FALSE) } # 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 # # Furthermore, if the function fails with the following error: # "Failed sending HTTP POST request", especially if the Driverless AI is hosted behind # a reverse proxy, it may help to enforce the HTTP version 2: dai.connect(uri = 'https://127.0.0.1:12345', username = 'h2oai', password = 'h2oai', ssl_verifypeer = FALSE, ssl_verifyhost = FALSE, http_version=2)