Skip to content

ffscrapr 1.4.0

Compare
Choose a tag to compare
@tanho63 tanho63 released this 13 Apr 14:51
· 249 commits to main since this release

The main goal of v1.4.0 is to add preliminary support for connecting ffscrapr to nflfastR weekly data, and to clean up bugs from v1.3.0. Huge thanks goes to Joe Sydlowski for his contributions on scoring history (and everything else DynastyProcess!)

New Features

  • nflfastr_weekly() imports weekly offensive statistics from nflfastR's data repository.
  • nflfastr_rosters() imports team rosters from nflfastR's roster repository.
  • ff_scoringhistory() connects your league's scoring settings to the nflfastr data (c/o the functions above), and allows you to reconstruct historical scoring for your league!
  • ff_starter_positions() describes the starter rules for each player/position, including min and max starters at each position accounting for flex spots. This should be useful for calculating things like value over replacement!

Breaking Changes

  • ff_scoring for ESPN loses the "override_pos" which only had a value of 16 for D/ST specific rules
  • ff_scoring rules for ESPN and Sleeper have been expanded from one line per rule to one line per position per rule

Minor Changes

  • Force mfl_playerscores to use season + league specific players call where possible (#239)
  • Reduce minimum rows for flea_rosters test to 200, which fixes an API check issue (#242)
  • Switching memoise backend to cachem package, fixes CRAN check issue where digest is no longer imported by memoise. Cachem also apparently more performant! (#244)
  • sleeper_transactions now correctly handles multiple dropped players in one transaction. (#246).
  • mfl_transactions - adds numeric string parsing to fix bug in auction bid amount (#)
  • mfl_draft now calculates age as of timestamp and also adds an overall column. (#259, #260)