-
Notifications
You must be signed in to change notification settings - Fork 303
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
mfx tidiers #756
mfx tidiers #756
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the NEWS
conflicts and hopefully trigger a new Travis build in the process?
On the whole, this looks great. Thank you for your contribution!
Also simplify tidy.mfx() using fix_data_frame()
Looks like there's a failing test https://travis-ci.org/tidymodels/broom/builds/624816058#L1894 |
Ah, it appears that the explicit use of
Do you have a preference? UPDATE: Upon reflection it's going to have to be option 2. In fact, I'll need to break the |
- tidy methods remains the same, but glance and augment methods actually take different arguments
@alexpghayes Okay, I've separated out the betamfx tidiers from the rest. Everything looks good when I run |
Hey @alexpghayes (and @simonpcouch) revisiting this PR after a looong absence. Near as I can tell, everything looked good on my side after the last review changes. I know that you've obviously pushed various updates to the master branch since. Let me know if you need me to merge upstream and then, hopefully, trigger a new CI build. |
Yeah can you merge upstream in one more time? Sorry for the criminal delay on this. |
I'm happy to merge as soon as the conflict is resolved! |
Merge branch 'master' into mfx_tidiers # Conflicts: # man/broom.Rd
Hmmm. Looks like some tests are failing on the Windows build for weird (unrelated?) reasons; e.g. ggplot2 failed to install as a dependency. Is this something other PRs have encountered? |
@grantmcdermott Thanks for making that happen! Yeah, really strange--added some contributors to DESCRIPTION and that ggplot2 issue came up. Not your fault.🙂 Will merge this afternoon! |
Hi @simonpcouch I just filed an issue (#873), but I just tried running this on the dev version and ran into a weird error about the mfx tidiers not being found. I'm fairly stumped since this worked fine on my local branch and also seemed to pass all the relevant CI tests. I know you've got a lot on your plate but wanted to make you aware since the PR has already been merged. Any ideas? |
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Addresses the first part of #700
Some things worth noting / still need to be addressed:
mfx
object, since they all accept the same arguments. Let me know if you would prefer these broken out into their distinct classes. (i.e. Separate files for classesbetamfx
,logitmfx
, etc.Let me know if you want to add the glossary terms yourself. Otherwise I'm happy to do it.UPDATE: Done, pending this PR Add glossary term for mfx_tidiers alexpghayes/modeltests#22I'm getting a warning about:UPDATE: Fixed.Undocumented arguments in documentation object 'mfx_tidiers': ‘data’ ‘newdata’ ‘type.predict’ ‘type.residuals’ ‘se_fit’
when I run devtools::check(). I'm really not sure why this is, but hopefully you can spot the problem quickly.Similarly, a warning aboutUPDATE: Fixed.Rd files with duplicated alias 'mfx_tidiers': ‘augment.mfx.Rd’ ‘glance.mfx.Rd’ ‘mfx_tidiers.Rd’
. My limited roxygen2 skills have stumped me here, so again I hope that's an easy fix for someone with more experience.I couldn't get theUPDATE: Fixed.check_augment_function()
test foraugment.betamfx
to work even though everything looks good to me. (See here.) There's some deeper work that probably needs to be done with the underlying modeltests package to ensure compatibility here, so I just commented it out for the moment.