JaseZiv / worldfootballR

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

fb_player_match_logs Error #176

Closed azzlam97 closed 1 year ago

azzlam97 commented 1 year ago

Some players return an error when using the fb_player_match_logs function (e.g. Martinelli, Demarai Gray)

Error is as follows:

fb_player_match_logs('https://fbref.com/en/players/48a5a5d6/Martinelli', 2023, 'summary')
Error in `dplyr::mutate()`:
! Problem while computing `Squad = sub("^.*?([A-Z])", "\\1", .data$Squad)`.
Caused by error in `.data$Squad`:
! Column `Squad` not found in `.data`.
---
Backtrace:
  1. worldfootballR::fb_player_match_logs(...)
 14. rlang:::abort_data_pronoun(x, call = `y)
JaseZiv commented 1 year ago

Hi,

Can you please provide the output of sessionInfo()?

I have run the example you have provided and found no issues. Make sure you're version of worldfootballR is current (0.6.0).

azzlam97 commented 1 year ago

Interesting, all seems to be working fine now? Thanks for your response nonetheless