Last chance! 50% off unlimited learning
Sale ends in
An email will be sent automatically to the entity to notify them of the permission.
gs_perm_add(ss, email = NULL, type = c("anyone", "user", "domain", "group"),
role = c("reader", "writer", "owner"), commenter = FALSE,
with_link = TRUE, send_email = TRUE, verbose = TRUE)
a registered Google spreadsheet, i.e. a googlesheet
object
The value "user", "group", "domain" or "anyone".
role
logical
logical; whether the link is required for this permission
logical; do you want to send notification emails when sharing to users or groups?
logical; do you want informative messages?
a tbl_df with information about the newly added permission.
Commenting is allowed by default for "owners" and "writers". Set commenter = TRUE if you want "readers" to be able to comment.
# NOT RUN {
foo <- gs_new("foo")
gs_perm_ls(foo)
# Add anyone as a reader:
gs_perm_add(foo, type = "anyone", role = "reader")
gs_perm_ls(foo)
gs_delete(foo)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab