Share | R Documentation |
See SharingRole
for more details on available access levels that can be granted
to a user. Set role
to NULL
to revoke access to a particular user.
Share(object, username, role = "default", canShare = NULL)
object |
object. The shared object to inspect access for. |
username |
character. The name of the user to share the object with. |
role |
character. The role (access level) to give that user. See |
canShare |
logical. Is the user allowed to further reshare? |
## Not run:
dataStoreId <- "5c1303269300d900016b41a7"
dataStore <- GetDataStore(dataStoreId)
# Grant access to a particular user.
Share(dataStore, "foo@foo.com")
# Grant access in a Read Only role.
Share(dataStore, "foo@foo.com", role = SharingRole$ReadOnly)
# Revoke access
Share(dataStore, "foo@foo.com", role = NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.