nflreadr 1.3.1
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 vianflverse_game_idinstead ofold_game_idload_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()andnflverse_download()now accept.tokenarguments which default togh::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!