Create a personal access token for R (server) usage. Like for the other token functions, this operation requires the user to authenticate with username/password credentials.
opal.token_r_create(
opal,
name,
projects = NULL,
access = NULL,
commands = c("export")
)
Opal object.
Name of the token
Vector of project names, to which the token applies. Default is NULL (all projects).
Data access level: 'READ' (read-only) or 'READ_NO_VALUES' (read-only, without access to individual-level data) or NULL (default).
Task commands that can launched on a project: 'import' and/or 'export'. Default is 'export' (use NULL for no task commands).
The token value.
Other token functions:
opal.token_datashield_create()
,
opal.token_delete()
,
opal.token_renew()
,
opal.token_sql_create()
,
opal.tokens()
,
opal.token()
if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
token <- opal.token_r_create(o, 'r-1', access = 'READ', commands = 'export')
opal.logout(o)
}