opal.token_r_create: Create a personal access token for R usage

Description Usage Arguments Value See Also Examples

View source: R/opal.token.R

Description

Create a personal access token for R usage

Usage

1
2
3
4
5
6
7
opal.token_r_create(
  opal,
  name,
  projects = NULL,
  access = NULL,
  commands = c("export")
)

Arguments

opal

Opal object.

name

Name of the token

projects

Vector of project names, to which the token applies. Default is NULL (all projects).

access

Data access level: 'READ' (read-only) or 'READ_NO_VALUES' (read-only, without access to individual-level data) or NULL (default).

commands

Task commands that can launched on a project: 'import' and/or 'export'. Default is 'export' (use NULL for no task commands).

Value

The token value.

See Also

Other token functions: opal.token_datashield_create(), opal.token_delete(), opal.token_sql_create(), opal.tokens(), opal.token()

Examples

1
2
3
4
5
6
## Not run: 
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)

## End(Not run)

opalr documentation built on Oct. 26, 2021, 5:06 p.m.