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: 2023-03-12 16:27:43 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 combine           "NFL Combine Data… 2023-0…     1       1     1      0     0
#>  2 contracts         "OverTheCap contr… 2023-0…     2       1     0      1     0
#>  3 injuries          "Injuries data, a… 2023-0…    14      14    14      0     0
#>  4 players           "Player informati… 2023-0…     1       1     1      0     0
#>  5 pbp_participation "Participation da… 2023-0…     7       7     7      0     0
#>  6 player_stats      "Play by play dat… 2023-0…    50      50    50     49     0
#>  7 pbp               "Play by play dat… 2023-0…    24      24    24     24    23
#>  8 misc              "Various bits of … 2023-0…     3       1     3      0     0
#>  9 nextgen_stats     "NFL Next Gen Sta… 2023-0…    24       3     0     24     0
#> 10 depth_charts      "Depth chart data… 2023-0…    22      22    22      0     0
#> 11 rosters           "Roster data, acc… 2023-0…   103     103   103      0     0
#> 12 weekly_rosters    "Week-level roste… 2023-0…    21      21    21      0     0
#> 13 draft_picks       "Draft picks dati… 2023-0…     1       1     1      0     0
#> 14 pfr_advstats      "PFR Adv Stats da… 2023-0…    24      24    24      0     0
#> 15 snap_counts       "Snap counts data… 2023-0…    11      11    12      0     0
#> 16 officials         "Data about which… 2023-0…     1       1     1      0     0
#> 17 test              "for internal tes… 2022-0…     1       0     1      0     0
#> # … with abbreviated variable names ¹​release_description, ²​timestamp

# Restore old options
options(old)
# }