-
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
Use cli errors #457
Labels
feature
a feature request or enhancement
tidy-dev-day 🤓
Tidyverse Developer Day rstd.io/tidy-dev-day
Comments
This was referenced Jul 22, 2024
This was referenced Jul 25, 2024
Closing this after all the tidy dev day PRs! Thank you @PriKalra @Dpananos and @JamesHWade!! 🙌 |
Thank you @hfrick for the patience and the opportunity! I will come back to support again! |
This issue 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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
feature
a feature request or enhancement
tidy-dev-day 🤓
Tidyverse Developer Day rstd.io/tidy-dev-day
Most or all errors thrown in this package are made via
rlang::abort()
. We are transitioning tocli::cli_abort()
to make use of the richer styling options for errors via cli (which calls rlang under the hood).It is often sufficient to search for and replace the rlang version with the cli version together with adding a little bit of styling.
Some examples of the styling possibilities are in the general introduction under the section of Inline text formatting. More details on inline formatting and pluralization.
One aspect to watch out for when transitioning from
rlang::abort()
tocli::cli_abort()
are messages pre-assembled from user input as described here.#499 can serve as an example.
We are splitting this up into several batches:
R/bootci.R
#504R/caret.R
#505R/initial_validation_split.R
#506R/labels.R
#507R/make_groups.R
,R/mc.R
,R/nest.R
#508R/misc.R
#509R/permutations.R
,R/reg_intervals.R
#510R/rset.R
#511R/rsplit.R
#512R/slide.R
#513R/tidy.R
,R/validation_set.R
,R/vfold.R
#514The text was updated successfully, but these errors were encountered: