This PR reworks how the prop argument to various functions is checked.
Several of the functions had a written-out check block in either the user-facing function or the underlying *_split() function. The functions for grouped resampling were checking prop deep down the call chain with a check_prop().
I've decided to place the check in the user-facing functions and reworked it a little to benefit from the "friendly object type" in the standard checkers from rlang and only do the boundaries in a custom way.
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.
For #541 and #458
This PR reworks how the
prop
argument to various functions is checked.Several of the functions had a written-out check block in either the user-facing function or the underlying
*_split()
function. The functions for grouped resampling were checkingprop
deep down the call chain with acheck_prop()
.I've decided to place the check in the user-facing functions and reworked it a little to benefit from the "friendly object type" in the standard checkers from rlang and only do the boundaries in a custom way.