Skip to content

nflreadr 1.3.1

Compare
Choose a tag to compare
@tanho63 tanho63 released this 06 Jan 01:12
93341ef

Fixes CRAN bug and provides some function improvements, most notably improved logic for load_participation()'s pbp join.

New Features

  • Added nflverse_game_id() which computes valid nflverse game identifiers in the format "{season}_{week}_{away}_{home}"

Function Updates

  • load_participation() now joins pbp on via nflverse_game_id instead of old_game_id
  • load_snap_counts() now allows download of the 2012 season which was previously hardcoded from 2013 (#128)
  • progressively() now works with purrr-style lambda functions and no longer checks for progressor class, allowing it to be used more flexibly (and with cli-based progress bars.)

Bugfixes

  • nflverse_releases() and nflverse_download() now accept .token arguments which default to gh::gh_token(). This is mostly to let us test things properly. (#131)
  • Adjust import references per Jenny Bryan's recommendations in hadley/r-pkgs#828 to avoid loading unused packages.
  • clean_player_names() now fully lives in nflreadr, the squish/trim happens first
  • player name mapping update
  • get_current_season() now exists, because we can't agree on what to name things.

Thank you to @atungate,@grayhawk40, @guga31bb,@jestarr, @john-b-edwards,@marvin3FF,@mrcaseb, @SCasanova, @shirondru, @tanho63, and @TheMathNinja for their contributions and feedback towards this release!