JaseZiv / worldfootballR

A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat
https://jaseziv.github.io/worldfootballR/
433 stars 59 forks source link

Issue in fotmob_get_league_matches() #214

Closed evirgen1 closed 1 year ago

evirgen1 commented 1 year ago

I had a problem when I used worldfootballr package.

This code is working:

df1 <- fotmob_get_league_tables(country = "TUR", league_name = "Super Lig")

But, when I try this:

new <- fotmob_get_league_matches(country = "TUR", league_name = "Super Lig")

I am getting this error: "Error is: Error in clean_names.default(.) : No clean_names() method exists for the class list Consider janitor::make_clean_names() for other cases of manipulating vectors of names."

I do not understand the reason of this error. Thank you!

JaseZiv commented 1 year ago

I have tested this locally on the current dev version (0.6.1.6000). I think the problem you're having is you're not using the most current version. Always make sure you're using the latest version - we're constantly updating the library to account for html changes on the sites we're scraping.

We can only push changes to CRAN monthly at most, so always check what dev version we're on.

You can install it using:

devtools::install_github("JaseZiv/worldfootballR")

Please install the update and let me know here. If it works with the latest version, I will close this issue.

evirgen1 commented 1 year ago

Thank you! It worked!