nflverse / nflfastR

A Set of Functions to Efficiently Scrape NFL Play by Play Data
https://www.nflfastr.com/
Other
425 stars 52 forks source link

Unable to update DB: Error in if (any(pbp_data$qtr > 4)) { : missing value where TRUE/FALSE needed #86

Closed charlesandrews closed 4 years ago

charlesandrews commented 4 years ago

Full output:


Can't find database ./pbp_db. Will try to create it and load the play by play data into the data table "nflfastR_pbp".
Starting download of 22 seasons between 1999 and 2020...
Checking for missing completed games...                                                                             
You have 5597 games and are missing 7.
Starting download of 7 games ...
Warning: The requested GameID 2020_02_NYG_CHI is not loaded yet, please try again later!                            
Warning: The requested GameID 2020_02_DET_GB is not loaded yet, please try again later!                             
Warning: The requested GameID 2020_02_LA_PHI is not loaded yet, please try again later!                             
Warning: The requested GameID 2020_02_CAR_TB is not loaded yet, please try again later!                             
Download finished. Adding variables...                                                                              
added game variables
added nflscrapR variables
added ep variables
added air_yac_ep variables
Error in if (any(pbp_data$qtr > 4)) { : 
  missing value where TRUE/FALSE needed```

Could be due to the automatic data repo updates - will retry after today's game have completed.
mrcaseb commented 4 years ago

This is a bug caused by some bad underlying data we have fixed last week.

Please update to the dev version by running

if (!requireNamespace("remotes", quietly = TRUE)) {install.packages("remotes")}
remotes::install_github("mrcaseb/nflfastR")

And try again.

charlesandrews commented 4 years ago

Worked, thanks!