sportsdataverse / hoopR

An R package to quickly obtain clean and tidy men's basketball play by play data.
http://hoopr.sportsdataverse.org/
Other
81 stars 18 forks source link

espn_mbb_scoreboard() does not work for 2022 season #48

Closed applejacks11 closed 2 years ago

applejacks11 commented 2 years ago

Describe the bug Only able to load pending games for 2022 using "2021" for season. Using 2022 or most_recent_mbb_season() results in error: season must be between 2001 and 2021. Using individual dates for season for 2022 season games (i.e. season= "20211202") works as expected

hoopR 1.5

saiemgilani commented 2 years ago

Yikes

saiemgilani commented 2 years ago

We should fire the guy that wrote that code. Good news is, I will fix that in the next release. The other good news is use the load_mbb_schedules() function for the current season to get the full schedule or run espn_mbb_scoreboard with no parameters to get current days scoreboard if that's what you're interested in

applejacks11 commented 2 years ago

All good, I couldn't build the code if you gave me a couple years so appreciate the quick response. I'm looking for current year historical to compare with my forecast so whenever it updates is good for me. Thanks!!