Description Usage Arguments Details Value Examples
Get or set visibility of populations
1 2 | visibility(x)
add_reader(x, reader = NULL, reader_domain = NULL)
|
x |
a population (from |
reader |
email address of a person to give read access to |
reader_domain |
email domain of an organization to give read access to |
visibility
and add_reader
manipulate the permissions of a
population. They can be applied to population models, but that is only a
convenience; population models do not have ACLs independent of populations.
When calling add_reader
, exactly one of reader
and
reader_domain
must be specified.
Both visibility
and add_reader
return an object with keys
owner
(a length-one character vector), public
(a length-one
logical vector), readers
(a character vector of email addresses), and
reader_domains
(a character vector of email domains).
1 2 3 4 5 6 7 | ## Not run:
pm <- popmod(sess, "p-0123456789abcdef")
add_reader(pm, "test@example.com")
add_reader(pm, reader_domain = "example.com")
print(visibility(pm))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.