-
Notifications
You must be signed in to change notification settings - Fork 66
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
Implement balance_prop_strata() (Fixes #317) #365
Conversation
whooooooops (in all seriousness, this looked pretty easy to tackle and I was stuck inside on a Friday night anyway...) |
The pkgdown error happens because downlit::href_package("mlbench")
#> Error in readRDS(con): error reading from connection Created on 2022-09-16 with reprex v2.0.2 This is called by
We intentionally removed mlbench from website dependencies (#314, #340). Putting it back doesn't fix this error locally. At any rate, I don't think that has anything to do with this PR, so I've marked it as good to review. |
Found it: try(remove.packages("mlbench"), silent = TRUE)
#> Removing package from '/home/mikemahoney218/R/x86_64-pc-linux-gnu-library/4.2'
#> (as 'lib' is unspecified)
downlit::href_package("mlbench")
#> Error in readRDS(con): error reading from connection
install.packages("mlbench")
#> Installing package into '/home/mikemahoney218/R/x86_64-pc-linux-gnu-library/4.2'
#> (as 'lib' is unspecified)
downlit::href_package("mlbench")
#> [1] NA Created on 2022-09-16 with reprex v2.0.2 So it might be the case that having mlbench in website dependencies, or installing it as an extra package in the pkgdown job, would be a good workaround here. |
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.
Thank you! 🎉 Could you add one code comment, please? (I tagged the exact place.) I found myself going back to a comment you left on the previous PR so I assume it would be good to add that in here directly.
Added comments to the relevant section 😄 |
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. |
This PR fixes #317 by implementing
balance_prop_strata()
and addingstrata = NULL, prop = 0.1
to the relevant grouped resampling functions. As before, these arguments are after...
to allow for future expansion (specifically for ifbreaks
ever gets implemented).Created on 2022-09-16 with reprex v2.0.2