When running df_xp <- fetch_xg_data() at the very beginning, either with a defined year or without, I get an error about vectors where a xml_nodeset object is defined.
_Error in stringr::str_subset():
! string must be a vector, not a object._
I've checked what's going on in fetch_xg_data.R and it's in the definition of epl_teams_raw, but I'm none-the-wiser. What's my mistake, please?
Hello,
Chrisjb/fploptimiser: Fantasy Premier League Team Optimisation
When running df_xp <- fetch_xg_data() at the very beginning, either with a defined year or without, I get an error about vectors where a xml_nodeset object is defined.
_Error in object._
stringr::str_subset()
: !string
must be a vector, not aI've checked what's going on in fetch_xg_data.R and it's in the definition of epl_teams_raw, but I'm none-the-wiser. What's my mistake, please?