Skip to contents

Get GitHub Repositories by Topic

Usage

get_github_by_topic(topics, token = NULL, limit = 30)

Arguments

topics

A vector of GitHub topics to search for.

token

A GitHub personal access token. If not provided, the function will run without authentication.

limit

The maximum number of results to return. Defaults to 30.

Value

A data frame containing the results of the search query.

Examples

topics <- c("u24ca289073")
df <- get_github_by_topic(topics, limit = 5)
#> ! No GitHub token provided. Running without authentication
#>  Use of a Personal Access Token (PAT)is recommended for increased rate limits. Create a token with: usethis::create_github_token()
#> This message is displayed once every 8 hours.
head(df)
#> # A tibble: 5 × 19
#>   name               owner description stars watchers forks open_issues open_prs
#>   <chr>              <chr> <chr>       <dbl>    <dbl> <dbl>       <dbl>    <dbl>
#> 1 awesome-cancer-va… sean… A communit…   318       30    74           1        0
#> 2 MultiAssayExperim… wald… Bioconduct…    71       14    34           1        0
#> 3 SpatialExperiment  drig… NA             71        7    21          29        5
#> 4 BiocParallel       Bioc… Bioconduct…    68       16    31          29        1
#> 5 HGNChelper         wald… Identify a…    59        5    10           4        0
#> # ℹ 11 more variables: closed_issues <dbl>, closed_prs <dbl>, commits <dbl>,
#> #   contributors <dbl>, tags <chr>, language <chr>, license <chr>,
#> #   created_at <chr>, pushed_at <chr>, updated_at <chr>, html_url <chr>
dplyr::glimpse(df)
#> Rows: 5
#> Columns: 19
#> $ name          <chr> "awesome-cancer-variant-resources", "MultiAssayExperimen…
#> $ owner         <chr> "seandavi", "waldronlab", "drighelli", "Bioconductor", "…
#> $ description   <chr> "A community-maintained repository of cancer clinical kn…
#> $ stars         <dbl> 318, 71, 71, 68, 59
#> $ watchers      <dbl> 30, 14, 7, 16, 5
#> $ forks         <dbl> 74, 34, 21, 31, 10
#> $ open_issues   <dbl> 1, 1, 29, 29, 4
#> $ open_prs      <dbl> 0, 0, 5, 1, 0
#> $ closed_issues <dbl> 2, 268, 69, 150, 13
#> $ closed_prs    <dbl> 5, 64, 70, 102, 6
#> $ commits       <dbl> 45, 1807, 484, 793, 150
#> $ contributors  <dbl> 4, 19, 15, 21, 4
#> $ tags          <chr> "awesome-list, bioinformatics, cancer, cancer-genomics, …
#> $ language      <chr> NA, "R", "R", "R", "R"
#> $ license       <chr> "MIT License", NA, NA, "Other", NA
#> $ created_at    <chr> "2016-07-07T13:16:14Z", "2013-07-22T03:29:27Z", "2020-02…
#> $ pushed_at     <chr> "2025-03-06T23:04:53Z", "2025-08-18T20:35:26Z", "2025-05…
#> $ updated_at    <chr> "2025-09-03T15:24:31Z", "2025-10-26T17:41:42Z", "2025-10…
#> $ html_url      <chr> "https://github.com/seandavi/awesome-cancer-variant-reso…