View source: R/opal.resource.R
opal.resource_perm | R Documentation |
Get the permissions that were applied on a resource.
opal.resource_perm(opal, project, resource)
opal |
Opal connection object. |
project |
The project name. |
resource |
The resource name. |
A data.frame with columns: subject, type, permission
Other resource functions:
opal.resource()
,
opal.resource_create()
,
opal.resource_delete()
,
opal.resource_exists()
,
opal.resource_extension_create()
,
opal.resource_get()
,
opal.resource_perm_add()
,
opal.resource_perm_delete()
,
opal.resources()
,
opal.resources_perm()
,
opal.resources_perm_add()
,
opal.resources_perm_delete()
## Not run:
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
opal.resource_perm_add(o, 'CNSIM', 'CNSIM1', c('andrei', 'valentina'), 'user', 'view')
opal.resource_perm(o, 'CNSIM', 'CNSIM1')
opal.resource_perm_delete(o, 'CNSIM', 'CNSIM1', c('andrei', 'valentina'), 'user')
opal.logout(o)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.