-
Notifications
You must be signed in to change notification settings - Fork 111
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
Use cli::cli_abort() in all steps #1262
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.
Slick! Snazzy! Superb!
@@ -4,23 +4,23 @@ | |||
iris_rec %>% step_sample(size = -1) | |||
Condition | |||
Error in `step_sample()`: | |||
! `size` should be a positive number or NULL. | |||
! `size` must be a number larger than or equal to 0 or `NULL`, not the number -1. |
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.
! `size` must be a number larger than or equal to 0 or `NULL`, not the number -1. | |
! `size` must be `NULL` or a number larger than or equal to 0, not the number -1. |
with the current wording, i initially thought NULL
completed some part of the clause "a number larger than or equal to 0"
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.
This is handled by check_number_decimal()
so I'm hesitant to change it
tests/testthat/_snaps/window.md
Outdated
@@ -89,7 +89,7 @@ | |||
Condition | |||
Error in `step_window()`: | |||
Caused by error in `prep()`: | |||
! There were 2 term(s) selected but 1 values for the new features were passed to `names`. | |||
! There were 2 terms selected but 1 values for the new features were passed to `names`. |
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.
! There were 2 terms selected but 1 values for the new features were passed to `names`. | |
! There were 2 terms selected but 1 value for the new features was passed to `names`. |
pluralization is currently correct for the plural case, though :)
Co-authored-by: Simon P. Couch <[email protected]>
Co-authored-by: Simon P. Couch <[email protected]>
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. |
Ref: #1237
With this PR, we now have converted all
alert()
tocli_abort()
🎉