Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ff_starters error #202

Closed
TheMathNinja opened this issue Feb 12, 2021 · 5 comments · Fixed by #203 or #204
Closed

ff_starters error #202

TheMathNinja opened this issue Feb 12, 2021 · 5 comments · Fixed by #203 or #204
Labels
bug 🐛 an unexpected problem or unintended behavior

Comments

@TheMathNinja
Copy link
Contributor

Using current dev version of ffscrapr.
Passed an MFL conn object to ff_starters with no other input. Got this error:

starts_data <- ff_starters(FAFL20)
Error in ff_starters.mfl_conn(FAFL20) :
Assertion on 'week' failed: Must be of type 'numeric', not 'character'.

Based on the function readme, I assumed that maybe it would use all weeks as the default if not specified, but it doesn't seem to be able to handle not having weeks specified. I think this is a bug but not sure.

@TheMathNinja
Copy link
Contributor Author

Also, I have a second bug to report. Once I specify week = 1:16, the function works, but...the player_name, pos, and team variables are all NA except in a very few instances (the other columns are correct to my eyes).

Also, I'm sure this matters less, but I also noticed that the starters are listed in the same order as they appear on the "Weekly Results" page in MFL (i.e. sorted by position), but that the nonstarters are not sorted in the same way. Seems like it would be nice.

@tanho63 tanho63 added the bug 🐛 an unexpected problem or unintended behavior label Feb 12, 2021
@tanho63
Copy link
Member

tanho63 commented Feb 12, 2021

Good catches, two separate bugs on the same page!

This was linked to pull requests Feb 13, 2021
@TheMathNinja
Copy link
Contributor Author

This definitely fixed the major issue but I'm still noticing that non-starters are not sorted by position the way starters are.

@tanho63
Copy link
Member

tanho63 commented Feb 13, 2021

Probably would require converting to factor but that creates more problems for end users in my opinion, so I'll shelve that one for now

@tanho63
Copy link
Member

tanho63 commented Mar 7, 2021

Initial starters bug has been included in CRAN v1.3.0 - nonstarter/starter sort probably is a wont-fix at this time but please feel free to bring it up again later

@tanho63 tanho63 closed this as completed Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants