Releases: k5cents/fflr
fflr 2.3.0
ESPN has changed the URL of their API. This version uses the new URL for API calls and makes more functions fail elegantly when the API does not return data during the off-season (returning a message and a data frames with zero rows).
Version 3.0.0 will release following the start of the 2024 NFL season.
fflr 2.2.2
Fixes some bugs introduced by the end of the 2023 fantasy season.
fflr 2.2.0
Package has been updated for the 2023 season!
- Functions now use
seasonId = 2023
by default inffl_api()
. - Update objects with latest data from 2023 season.
- Fix
nfl_players
to include actually all of the players. - Adjust the free agent information in
nfl_teams
. - Add more function tests.
- Add
bonusWin
column tolive_scoring()
.
fflr 2.1.0
Package has been updated for the 2022 season!
- Functions now use
seasonId = 2022
from default inffl_api()
. - Included data has been updated to 2022:
nfl_players
,nfl_schedule
,nfl_teams
fflr 2.0.0
- Deprecate
tidy_matchups()
and replace withtidy_schedule()
. - Leave
items
nested inrecent_activity()
. - Fix bye week scoring for D/ST players in
team_roster()
(#40). - Change
powerWins
to a normalizedexpectedWins
intidy_scores()
. - Add
scoringPeriodId
argument to functions likerecent_activity()
(#32). - Add
budget_summary()
version oftransaction_counter()
. - Add
useMatchup
argument totidy_scores()
to allow forscoringPeriodId
. - Add transaction dates (and more) to
recent_activity()
output. - Add
best_roster()
, usingteam_roster()
and sorting with slot settings. pro_schedule()
(andnfl_schedule
) are sorted bydate
andmatchupId
.- Deprecate
all_players()
in favor of more advancelist_players()
(#21). - Manually override
teamId
in eachteam_roster()
data frame. - Clarify the name of many
*Id
columns (e.g.,teamId
,matchupId
) (#31). - Add
combine_history()
utility forleagueHistory
functions. - Improve handling of pre-draft and no-history edge cases (#35).
- Improve abbreviation techniques, add all roster slot and position IDs (#29).
- Fix error checking in
ffl_api()
. Returns proper error message when there is a failure (e.g., non-public league) (#36).
fflr 1.9.2
- Fix
tidy_scores()
for settings that award home team points. - Remove bad variables argument from
pro_scores()
. - Add vignette and update the README and logo.
- Unnest the
currentScoringPeriod
inffl_seasons()
. - Remove
seasonId
argument in sub-functions. - Use
proTeamId
andplayerId
column names in data. - Clarify which columns are simulated in
league_simulation()
. - Add
overwrite
argument toffl_id()
to setoptions()
regardless. - Rename
state_correct()
tostat_corrections()
and update for new back-end.
fflr 1.9.0
This release represents coverage of issues #24 and #27. The package replicates the functionality of the website, providing a machine interface for information on leagues and players. Work still needs to be done to test (#30) and clean up the matching column names across outputs (especially when team/position/slot IDs have been converted to abbreviations #31).
fflr 0.3.15
This mostly relates to ensuring examples, vignettes, etc run properly despite the season having ended. Functions like roster_moves()
use a specific week = 5
argument to ensure they actually pull data for examples.
fflr 0.3.12
This patch primarily fixes bugs related to handling API errors.
- Use known weekly rosters in all tests, examples, and vignettes.
- Improve the way
all_players()
safely handles bye week stats. - Skip
all_players()
tests and examples on CRAN for time reasons. - Remove changes to
options()
intry_api()
, keepSys.sleep()
. - Use
try_api()
for all other JSON calls (.e.g.,ffl_seasons()
).
fflr 0.3.9
Initial CRAN release. Covers most functionality of the ESPN website (see #10):
- List all players, find individual athlete information, news, outlooks, corrections, trends.
- League members, teams, standings, settings, rosters, schedule, messages, transactions, draft.
- Historical match and week scores, live scoring and projections.
- Convenience functions for best roster, starting roster.