rdrr-io / rdrr-issues

rdrr.io issues
34 stars 7 forks source link

Error with vectors and xml_nodeset objects, fetch_xg_data #118

Closed dthorrington closed 4 months ago

dthorrington commented 5 months ago

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 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?

ihowson commented 4 months ago

Thanks for getting in touch!

This issue tracker is just for website issues. We're not able to provide technical support for individual packages. Sorry!