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, ...)

Arguments

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).

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