Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gs_perm_add

Add a permission to a spreadsheet


Description

An email will be sent automatically to the entity to notify them of the permission.

Usage

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)

Arguments

ss

a registered Google spreadsheet, i.e. a googlesheet object

type

The value "user", "group", "domain" or "anyone".

role

role

commenter

logical

with_link

logical; whether the link is required for this permission

send_email

logical; do you want to send notification emails when sharing to users or groups?

verbose

logical; do you want informative messages?

Details

Commenting is allowed by default for "owners" and "writers". Set commenter = TRUE if you want "readers" to be able to comment.

Value

a tbl_df with information about the newly added permission.

Examples

## 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)

## End(Not run)

googlesheets

Manage Google Spreadsheets from R

v0.3.0
MIT + file LICENSE
Authors
Jennifer Bryan [aut, cre], Joanna Zhao [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.