Closed legopin closed 5 years ago
I get the same issue running the latest (I think) version. Just tried to pull yesterday's game data.
Just for the record, I also have exactly the same experience as described above.
Testing the function trying to retrieve 3/28/2019 data: --If I try running get_payload with dataset = "inning_all" I get the 'on_1b' error stated above. --If I try using dataset = "bis_boxscore" I get a "Error in as.numeric(t) : cannot coerce type 'closure' to vector of type 'double'" message. -- Dataset = "linescore" seems to work fine.
I’m suspecting that this changelog entry for 2018/9/20 on baseballsavant might be related to this issue
Resolved bug with null pos_personid's. > Fields re-named to fielder to resolve it. https://baseballsavant.mlb.com/change-log
This bug has been resolved and a new version (0.2.0) has been pushed to CRAN. There were several schema changes to the 2019 data set. I have reconciled the schema changes so 2019 data will fit with older data. Changes are below.
score
was removed from 2019 inning_all$atbat data. The column was inserted and cast as NA for 2019.on_1
, on_2
, and on_3
were removed from 2019 inning_all$atbat. The columns were inserted and cast to NA.https://cran.r-project.org/web/packages/mlbgameday/index.html
Much appreciation for the timely bug reports!
This bug has been resolved and a new version (0.2.0) has been pushed to CRAN. There were several schema changes to the 2019 data set. I have reconciled the schema changes so 2019 data will fit with older data. Changes are below.
score
was removed from 2019 inning_all$atbat data. The column was inserted and cast as NA for 2019.on_1
,on_2
, andon_3
were removed from 2019 inning_all$atbat. The columns were inserted and cast to NA.https://cran.r-project.org/web/packages/mlbgameday/index.html
Much appreciation for the timely bug reports!
Thanks for the update!
Expected Behavior
Expected to get df of pitch data for data on 2019-03-28 http://gd2.mlb.com/components/game/mlb/year_2019/month_03/day_28
Games listed here https://www.mlb.com/scores/2019-03-28
Current Behavior
Encounters error message, the download fails
However, data download succeeds when the date is before 2018-10-28
Attempted Solution
Tried to reinstall the latest package to GitHub dev version Did not solve the issue
Context