opal.resource_create: Create a resource reference in a project

Description Usage Arguments See Also Examples

View source: R/opal.resource.R

Description

Create a resource reference in a project

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
opal.resource_create(
  opal,
  project,
  name,
  url,
  description = NULL,
  format = NULL,
  package = NULL,
  identity = NULL,
  secret = NULL
)

Arguments

opal

Opal object.

project

Name of the project.

name

Name of the resource in the project.

url

The URL of the resource.

description

The description of the resource (optional).

format

The format of the data described by the resource (optional).

package

The R package to be loaded prior to the assignment of the resource (optional).

identity

The identity key or username to be used when accessing the resource (optional).

secret

The secret key or password to be used when accessing the resource (optional).

See Also

Other resource functions: opal.resource_delete(), opal.resource_exists(), opal.resource_extension_create(), 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
## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.resource_create(o, 'RSRC', 'CNSIM4', 
  url = 'opal+https://opal-demo.obiba.org/ws/files/projects/RSRC/CNSIM3.zip', 
  format = 'csv', secret = 'EeTtQGIob6haio5bx6FUfVvIGkeZJfGq')
opal.logout(o)

## End(Not run)

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