Closed FelixZhao123 closed 1 year ago
Same issue,all the fotmob functions don't work.
probably same as #209. please make sure you have the latest version of the package, which you can get with remotes::install_github("JaseZiv/worldfootballR")
.
library(worldfootballR)
packageVersion("worldfootballR")
#> [1] '0.6.1.9000'
league_matches <- fotmob_get_league_matches(
country = c("ENG", "ESP"),
league_name = c("Premier League", "LaLiga")
)
tail(league_matches)
#> # A tibble: 6 × 8
#> month_key round round_name page_url id home$…¹ away$…² statu…³
#> <chr> <int> <chr> <chr> <chr> <chr> <chr> <lgl>
#> 1 Sunday, 04 June 2023 38 38 /match/39… 3918… Osasuna Girona FALSE
#> 2 Sunday, 04 June 2023 38 38 /match/39… 3918… Real B… Valenc… FALSE
#> 3 Sunday, 04 June 2023 38 38 /match/39… 3918… Real M… Athlet… FALSE
#> 4 Sunday, 04 June 2023 38 38 /match/39… 3918… Real S… Sevilla FALSE
#> 5 Sunday, 04 June 2023 38 38 /match/39… 3918… Real V… Getafe FALSE
#> 6 Sunday, 04 June 2023 38 38 /match/39… 3918… Villar… Atleti… FALSE
#> # … with 11 more variables: home$shortName <chr>, $id <chr>,
#> # away$shortName <chr>, $id <chr>, status$started <lgl>, $cancelled <lgl>,
#> # $scoreStr <chr>, $startDateStr <chr>, $startDateStrShort <chr>,
#> # $reason <df[,2]>, $startTimeStr <chr>, and abbreviated variable names
#> # ¹home$name, ²away$name, ³status$finished
Thanks! It worked after updating to latest version.
The function fotmob_get_league_matches returns error mesages as below:
`> league_matches <- fotmob_get_league_matches(
clean_names()
method exists for the class list Consider janitor::make_clean_names() for other cases of manipulating vectors of names.`would you please take a look into this? Thanks!