cfbd_stats_season_team()that were not behaving correctly
cfbd_team_info()was ignored. It is now possible to get the team info for all the colleges in the API instead of only FBS schools.
cfbd_metrics_ppa_players_seasonnow require one of
yearto be specified
Added headshot_url to outputs of
Renamed returns in
Completed documentation for all returns except
Continued work on intro vignette
All functions sourced from the College Football Data API will start with
cfbd_ as opposed to
cfb_ (as in cfbscrapR). One additional
cfbd_ function has been added that corresponds to the result when
cfbd_pbp_data() has the parameter
epa_wpa=FALSE. It has now been separated into its own function for clarity
cfbd_plays(). The parameter and functionality still exists in
cfbd_pbp_data() but we expect this function will still exist but made obsolete in favor of a function more closely matching
nflfastR’s naming conventions.
Data generated from any of the
cfbfastR methods will use
The CollegeFootballData API now requires an API key, here’s a quick run-down:
To get an API key, follow the directions here: College Football Data Key Registration.
Using the key: You can save the key for consistent usage by adding
CFBD_API_KEY=XXXX-YOUR-API-KEY-HERE-XXXXX to your .Renviron file (easily accessed via
usethis::edit_r_environ(), a new script will pop open named
.Renviron, THEN paste the following in the new script that pops up (without quotations)
CFBD_API_KEY = XXXX-YOUR-API-KEY-HERE-XXXXX
Save the script and restart your RStudio session, by clicking
Session (in between
Build) and click
Restart R (n.b. there also exists the shortcut
Ctrl + Shift + F10 to restart your session). If set correctly, from then on you should be able to use any of the
cfbd_ functions without any other changes.
CFBD_API_KEY(with quotations) using a command like the following.