opal.resource_extension_create: Create an extended resource reference in a project

Description Usage Arguments See Also Examples

View source: R/opal.resource.R

Description

Create an extended resource reference in a project

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
opal.resource_extension_create(
  opal,
  project,
  name,
  provider,
  factory,
  parameters,
  description = NULL,
  credentials = NULL
)

Arguments

opal

Opal object.

project

Name of the project.

name

Name of the resource in the project.

provider

Name of the R package in which the resource is defined.

factory

Name of the JS function that turns parameters and credentials into a resource object.

parameters

A named list of the resource parameters.

description

The description of the resource (optional).

credentials

A named list of the resource credentials (optional).

See Also

Other resource functions: opal.resource_create(), opal.resource_delete(), opal.resource_exists(), opal.resource_get(), opal.resource_perm_add(), opal.resource_perm_delete(), opal.resource_perm(), opal.resources_perm_add(), opal.resources_perm_delete(), opal.resources_perm(), opal.resources(), opal.resource()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.resource_extension_create(o, 'RSRC', 'ga4gh_1000g',
  provider = 'dsOmics', factory = 'ga4gh-htsget',
  parameters = list(
    host = 'https://htsget.ga4gh.org',
    sample = '1000genomes.phase1.chr1',
    reference = '1',
    start = '1',
    end = '100000',
    format = 'GA4GHVCF'
  )
)
opal.logout(o)

## End(Not run)

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