opal.login {opal}R Documentation

Opal login

Description

Log in Opal(s).

Usage

opal.login(username = getOption("opal.username"),
  password = getOption("opal.password"), url = getOption("opal.url"),
  opts = getOption("opal.opts", list()), restore = NULL)

Arguments

username

User name in opal(s). Can be provided by "opal.username" option.

password

User password in opal(s). Can be provided by "opal.password" option.

url

Opal url or list of opal urls. Can be provided by "opal.url" option.

opts

Curl options. Can be provided by "opal.opts" option.

restore

Workspace ID to be restored (see also opal.logout)

Value

A opal object or a list of opal objects.

Examples

## Not run: 

#### The below examples illustrate the different ways to login in opal ####

# explicite username/password login
o <- opal.login(username='administrator',password='password',url='https://opal-demo.obiba.org')

# login using options
options(opal.username='administrator',
 opal.password='password',
 opal.url='https://opal-demo.obiba.org')
o <- opal.login()

# login using ssl key pair
options(opal.opts=list(
   sslcert='my-publickey.pem',
   sslkey='my-privatekey.pem'))
o <- opal.login(url='https://opal-demo.obiba.org')

## End(Not run)

[Package opal version 2.6.0 ]