sportsdataverse / cfbfastR

An R package to quickly obtain clean and tidy college football play by play data
https://cfbfastR.sportsdataverse.org
Other
74 stars 8 forks source link

cfbd_game_team_stats is requiring the "team" argument. #86

Open aaronmorrisNC opened 1 year ago

aaronmorrisNC commented 1 year ago

The cfbd_game_team_stats is requiring the "team" argument. However, the arguments description state that it is optional.

Expected behavior

I should be able to execute cfbd_game_team_stats with a minimum of the "year" argument as documented in the usage file. https://cfbfastr.sportsdataverse.org/reference/cfbd_game_team_stats.html

team (String optional): D-I Team

Screenshots of Error

Error returned from R Studio.

df <- cfbd_game_team_stats(2021) Request failed [400]. Retrying in 1.1 seconds... Request failed [400]. Retrying in 1.3 seconds... 2022-11-15 17:43:42: Invalid arguments or no team stats data available!

Desktop (please complete the following information):

Kazink36 commented 1 year ago

The documentation isn’t clear on our end so I’ll make a note to fix that, but the cfbd_game_team_stats() endpoint on CFBD requires one of either team or week along with the season

aaronmorrisNC commented 1 year ago

Appreciate the help.