Skip to content

Commit

Permalink
skip missing games
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Mar 11, 2024
1 parent efcbef9 commit e275d75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/build_playstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ build_playstats <- function(seasons = nflreadr::most_recent_season(),
l <- furrr::future_map(
games,
function(id, p = NULL, dir, skip_local){
if (id %in% c("2000_03_SD_KC", "2000_06_BUF_MIA", "1999_01_BAL_STL")){
cli::cli_alert_warning("We are missing raw game data of {.val {id}}. Skipping.")
return(data.frame())
}
season <- substr(id, 1, 4)
raw_data <- load_raw_game(id, dir = dir, skip_local = skip_local)
if (season <= 2001){
Expand Down

0 comments on commit e275d75

Please sign in to comment.