Skip to contents

This functions lists all nflverse data releases that are available in the nflverse-data repo. Release names can be used for downloads in nflverse_download().

Usage

nflverse_releases(.token = "default")

Arguments

.token

a GitHub API token, "default" uses gh::gh_token()

Value

A dataframe containing release names, release descriptions, and other relevant release information.

Examples

# \donttest{
# Change option for better output
old <- options(piggyback.verbose = FALSE)

try( # avoids cran failures, can skip in normal usage
nflverse_releases()
)
#>  Running gh query
#>  Running gh query, got 100 records of about 500
#>  Running gh query, got 200 records of about 500
#>  Running gh query, got 300 records of about 500
#>  Running gh query, got 400 records of about 500
#>  Running gh query
#>  Running gh query, got 100 records of about 300
#>  Running gh query, got 200 records of about 300
#>  Running gh query
#>  Running gh query, got 100 records of about 200
#> ── nflverse release listing ────────────────────────────────────────────────────
#>  Data updated: 2022-08-07 14:40:55 UTC
#> # A tibble: 17 × 8
#>    release_name      release_descript…¹ times…²   rds parquet   csv csv_gz   zip
#>    <chr>             <chr>              <chr>   <int>   <int> <int>  <int> <int>
#>  1 rosters           "Roster data, acc… 2022-0…   103     103   103      0     0
#>  2 weekly_rosters    "Week-level roste… 2022-0…    21      21    21      0     0
#>  3 injuries          "Injuries data, a… 2022-0…    13      13    13      0     0
#>  4 pbp_participation "Participation da… 2022-0…     6       6     6      0     0
#>  5 players           "Player informati… 2022-0…     1       1     1      0     0
#>  6 depth_charts      "Depth chart data… 2022-0…    21      21    21      0     0
#>  7 contracts         "OverTheCap contr… 2022-0…     2       1     0      1     0
#>  8 player_stats      "Play by play dat… 2022-0…    48      48    47     48     0
#>  9 pbp               "Play by play dat… 2022-0…    23      23    23     23    23
#> 10 snap_counts       "Snap counts data… 2022-0…    10      10    11      0     0
#> 11 officials         "Data about which… 2022-0…     1       1     1      0     0
#> 12 misc              "Various bits of … 2022-0…     1       1     1      0     0
#> 13 pfr_advstats      "PFR Adv Stats da… 2022-0…    20      20    20      0     0
#> 14 combine           "NFL Combine Data… 2022-0…     1       1     1      0     0
#> 15 draft_picks       "Draft picks dati… 2022-0…     1       1     1      0     0
#> 16 test              "for internal tes… 2022-0…     1       0     1      0     0
#> 17 nextgen_stats     "NFL Next Gen Sta… 2022-0…    21       3     0     21     0
#> # … with abbreviated variable names ¹​release_description, ²​timestamp

# Restore old options
options(old)
# }