view_organizations: View organizations in GitHub

Description Usage Arguments Details Value Examples

View source: R/organizations.R

Description

view_organizations() summarises organizations in a table with the properties as columns and a row for each organization. view_organization() returns a list of all properties for a single organization. browse_organization() opens the web page for the organization in the default browser.

Usage

1
2
3
4
5

Arguments

user

(string, optional) The login of the user. If NULL the authenticated user is used.

n_max

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

...

Parameters passed to gh_page() or gh_request().

org

(string) The login of the organization.

Details

You can summarise all the organizations a user is a member of by specifying the user login, or the authenticated user if it is set to NULL. If a user is not supplied the first n_max organizations of GitHub are returned.

For more details see the GitHub API documentation:

Value

view_organizations() returns a tibble of organization properties. view_organization() returns a list of properties for a single organization. browse_organization() opens the default browser on the organization's page and returns the URL.

Organization Properties:

The following are only returned using view_organization():

Examples

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

  # View organizations a user is a member of
  view_organizations(user = "ChadGoymer")

  # View organizations the authenticated user is a member of
  view_organizations(user = NULL)

  # View all organizations
  view_organizations()

  # View a single organization in more detail.
  view_organization("HairyCoos")

  # Browse a organization's GitHub page
  browse_organization("HairyCoos")


## End(Not run)

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