view_users: View users in GitHub

Description Usage Arguments Details Value Examples

View source: R/users.R

Description

view_users() summarises users in a table with the properties as columns and a row for each user. view_user() returns a list of all properties for a single user. browse_user() opens the web page for the user in the default browser.

Usage

1
2
3
4
5
view_users(org, team, role = "all", n_max = 1000, ...)

view_user(user, ...)

browse_user(user, ...)

Arguments

org

(string, optional) The name of the organization.

team

(string, optional) The name of the team.

role

(string, optional) Filter the result by role. Can specify either "admin", "member" or "all". Default: "all".

n_max

(integer, optional) Maximum number to return. Default: 1000.

...

Parameters passed to gh_page() or gh_request().

user

(string) The login of the user.

Details

You can summarise all the users associated with either an organization or a team within an organization. If none of those are supplied the first n_max users of GitHub are returned.

For more details see the GitHub API documentation:

Value

view_users() returns a tibble of user properties. view_user() returns a list of properties for a single user. browse_user() opens the default browser on the user's page and returns the URL.

user Properties:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 

  # View users collaborating on a repository
  view_users(repo = "ChadGoymer/githapi")

  # View users in an organization
  view_users(org = "HairyCoos")

  # View users in a team within an organization
  view_users(org = "HairyCoos", team = "HeadCoos")

  # View the admins of an organization
  view_users(org = "HairyCoos", role = "admin")

  # View a single user
  view_user("ChadGoymer")

  # Browse a user's GitHub page
  browse_user("ChadGoymer")


## End(Not run)

ChadGoymer/githapi documentation built on Oct. 22, 2021, 10:56 a.m.