-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add suspensions from transfermarkt [Closes #411] #412
Conversation
get_risk_of_suspension() with a url is the only thing working.
f23b8bd
to
b5392cc
Compare
Fixed everything with the functions, should be ready to merge [Closes #411] |
is it possible to add a unit test? |
for what exactly? |
for the functions added in this PR. something as simple as checking rows in an example call, e.g. here |
@tonyelhabr You can't really predict the number of suspensions in a legaue and it changes constantly alongside other stats, which makes a lot of the tests in the package to be faulty. (like the injuries in a league) For example, the Premier League has no suspended players for now but that doesn't mean that the function is faulty. |
@aymennasri you don't just need to test for row numbers... you can also write unit tests to ensure the columns/data points you're wanting to scrape are still being presented (even if no data for the particular player)... |
@aymennasri can you also increment the patch number of the package version in |
Done. |
lgtm. tested out the code for various leagues and it seemed to work fine. i added examples and code to the vignette |
Thanks so much for reviewing this @tonyelhabr. |
@tonyelhabr @JaseZiv is there anything i should change in order to have my PRs merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test failures are unrelated
Added a half baked solution to #411 as I tried my best to match the authors approach in other functions.
get_risk_of_suspension()
with a url is the only thing working and I will need assistance if the author deems the pull request worthy enough.