Last chance! 50% off unlimited learning
Sale ends in
Create a resource reference in a project
opal.resource_create(
opal,
project,
name,
url,
description = NULL,
format = NULL,
package = NULL,
identity = NULL,
secret = NULL
)
Opal object.
Name of the project.
Name of the resource in the project.
The URL of the resource.
The description of the resource (optional).
The format of the data described by the resource (optional).
The R package to be loaded prior to the assignment of the resource (optional).
The identity key or username to be used when accessing the resource (optional).
The secret key or password to be used when accessing the resource (optional).
Other resource functions:
opal.resource()
,
opal.resource_delete()
,
opal.resource_exists()
,
opal.resource_extension_create()
,
opal.resource_get()
,
opal.resource_perm()
,
opal.resource_perm_add()
,
opal.resource_perm_delete()
,
opal.resources()
,
opal.resources_perm()
,
opal.resources_perm_add()
,
opal.resources_perm_delete()
if (FALSE) {
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)
}
Run the code above in your browser using DataLab