Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pwhl_pbp errors for certain valid game ids #45

Open
TejjyGH opened this issue Mar 23, 2024 · 0 comments
Open

pwhl_pbp errors for certain valid game ids #45

TejjyGH opened this issue Mar 23, 2024 · 0 comments

Comments

@TejjyGH
Copy link

TejjyGH commented Mar 23, 2024

Here is an easily reproducible example:
Opening RStudio and trying to run gamedata <- fastRhockey::pwhl_pbp(10) prints the error message Error encountered: replacement has 2 rows, data has 1. Please verify the game_id and ensure it corresponds to a valid game in the PWHL.

Game data is still returned from the call, however the shape of the returned data does not match the shape of returned data from other game ids where no error is thrown.

gamedata <- fastRhockey::pwhl_pbp(11) returns 91 variables (and so does every other game id I've tested that does not give an error), whereas the previous call for game id 10 returns 93 variables.

Additionally, some game ids print a separate error message.
gamedata <- fastRhockey::pwhl_pbp(45) prints the error message Error encountered: the condition has length > 1. Please verify the game_id and ensure it corresponds to a valid game in the PWHL.

These are a handful of games that throw each of the above error messages among games I've tried to retrieve data for (ids 2 - 52).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant