Skip to contents

Info on GitHub users, retrieved from the GitHub API.

Usage

gh_users

Format

A unnamed list with 6 components, each representing a GitHub user. Each user's component is a list of length 30, containing information such as username, GitHub id, and join date.

See also

Other GitHub data and functions: gh_repos, gh_users_json()

Examples

str(gh_users, max.level = 1)
#> List of 6
#>  $ :List of 30
#>  $ :List of 30
#>  $ :List of 30
#>  $ :List of 30
#>  $ :List of 30
#>  $ :List of 30
str(gh_users[[1]])
#> List of 30
#>  $ login              : chr "gaborcsardi"
#>  $ id                 : int 660288
#>  $ avatar_url         : chr "https://avatars.githubusercontent.com/u/660288?v=3"
#>  $ gravatar_id        : chr ""
#>  $ url                : chr "https://api.github.com/users/gaborcsardi"
#>  $ html_url           : chr "https://github.com/gaborcsardi"
#>  $ followers_url      : chr "https://api.github.com/users/gaborcsardi/followers"
#>  $ following_url      : chr "https://api.github.com/users/gaborcsardi/following{/other_user}"
#>  $ gists_url          : chr "https://api.github.com/users/gaborcsardi/gists{/gist_id}"
#>  $ starred_url        : chr "https://api.github.com/users/gaborcsardi/starred{/owner}{/repo}"
#>  $ subscriptions_url  : chr "https://api.github.com/users/gaborcsardi/subscriptions"
#>  $ organizations_url  : chr "https://api.github.com/users/gaborcsardi/orgs"
#>  $ repos_url          : chr "https://api.github.com/users/gaborcsardi/repos"
#>  $ events_url         : chr "https://api.github.com/users/gaborcsardi/events{/privacy}"
#>  $ received_events_url: chr "https://api.github.com/users/gaborcsardi/received_events"
#>  $ type               : chr "User"
#>  $ site_admin         : logi FALSE
#>  $ name               : chr "Gábor Csárdi"
#>  $ company            : chr "Mango Solutions, @MangoTheCat "
#>  $ blog               : chr "http://gaborcsardi.org"
#>  $ location           : chr "Chippenham, UK"
#>  $ email              : chr "csardi.gabor@gmail.com"
#>  $ hireable           : NULL
#>  $ bio                : NULL
#>  $ public_repos       : int 52
#>  $ public_gists       : int 6
#>  $ followers          : int 303
#>  $ following          : int 22
#>  $ created_at         : chr "2011-03-09T17:29:25Z"
#>  $ updated_at         : chr "2016-10-11T11:05:06Z"

str(lapply(gh_users, `[`, c("login", "name")))
#> List of 6
#>  $ :List of 2
#>   ..$ login: chr "gaborcsardi"
#>   ..$ name : chr "Gábor Csárdi"
#>  $ :List of 2
#>   ..$ login: chr "jennybc"
#>   ..$ name : chr "Jennifer (Jenny) Bryan"
#>  $ :List of 2
#>   ..$ login: chr "jtleek"
#>   ..$ name : chr "Jeff L."
#>  $ :List of 2
#>   ..$ login: chr "juliasilge"
#>   ..$ name : chr "Julia Silge"
#>  $ :List of 2
#>   ..$ login: chr "leeper"
#>   ..$ name : chr "Thomas J. Leeper"
#>  $ :List of 2
#>   ..$ login: chr "masalmon"
#>   ..$ name : chr "Maëlle Salmon"