This function retrieves all organizations associated with the currently authenticated
GitHub user, with options to control pagination.
Usage
orgs(per_page = 100, max_pages = 5, quiet = FALSE)
Arguments
- per_page
Number of organizations to return per page. Default is 100.
- max_pages
Maximum number of pages to retrieve. Default is 5.
- quiet
Logical; if TRUE, suppresses progress and status messages. Default is FALSE.
Value
Returns a data.frame
of organizations with the following columns:
- login
Character, the organization's username/login name
- url
Character, the API URL for the organization
The data.frame
is ordered as returned by the GitHub API (typically alphabetically).
Examples
if (FALSE) { # interactive()
# Get all organizations for the authenticated user
my_orgs <- orgs()
# Retrieve silently without progress messages
my_orgs <- orgs(quiet = TRUE)
# Extract just the organization names
org_names <- orgs()$login
}