visibility: Visibility

Description Usage Arguments Details Value Examples

Description

Get or set visibility of populations

Usage

1
2
  visibility(x)
  add_reader(x, reader = NULL, reader_domain = NULL)

Arguments

x

a population (from population) or a population model (from popmod)

reader

email address of a person to give read access to

reader_domain

email domain of an organization to give read access to

Details

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.

Value

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

Examples

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)

edpclient documentation built on May 2, 2019, 2:01 p.m.