-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add strict option for functions #34
Comments
I see. It could a good option and
and so on.... A difficulty is to identify cases where it will fail to develop the appropriate tests. Not sure to have enough time this week but if you want to explore and to propose a PR, you are welcome |
I like adding the strict argument for For For I'll work on a PR. |
As a developer, it would be helpful to have the option for some broom.helper functions to fail when they cannot execute the requested action.
I am integrating broom.helpers into gtsummary now, and these two scenarios have come up so far:
When I run
broom.helpers::tidy_identify_variables()
if the variables cannot be identified, I would like to be able to have the function error. As it is currently written, I would need to inspect the returned object to check if the variables were indeed identified.When I run
broom.helpers::tidy_add_header_rows(show_single_row=)
for a variable that cannot be put on a single row.Perhaps the arg could be something like
tidy_plus_plus(strict=)
? It would be similar to how purrr hadpluck()
andchuck()
?The text was updated successfully, but these errors were encountered: