Closed jrwinget closed 2 weeks ago
Looking great! would you kindly add some snapshot tests using extract_snapshot()
in https://github.com/tidymodels/recipes/blob/main/tests/testthat/test-cut.R so we can verify that they trigger correctly.
Those tests should be placed above https://github.com/tidymodels/recipes/blob/main/tests/testthat/test-cut.R#L171
Sure thing - thanks for the feedback!
I've added the snapshot tests and pushed the changes. Please take a look when you have a moment. Thanks again!!
Thanks for the contribution!
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.
Fixes #1351
Updated the
create_full_breaks()
function to provide a more informative error message whenstep_cut()
is applied to a column containing missing values (NA
). The function now checks for missing data and warns users appropriately.