-
Notifications
You must be signed in to change notification settings - Fork 333
✨Use cli for all errors etc ✨ #2185
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
Conversation
@gaborcsardi would you mind taking a quick skim through on most of these, but focussing some attention on my changes to the parallel errors. |
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.
Had some minor comments.
R/parallel.R
Outdated
@@ -110,7 +107,7 @@ default_num_cpus <- function() { | |||
if (!is.null(ncpus)) { | |||
ncpus <- suppressWarnings(as.integer(ncpus)) | |||
if (is.na(ncpus)) { | |||
abort("`getOption(Ncpus)` must be an integer") | |||
cli::cli_abort("{.fn getOption}({.arg Ncpus}) must be an integer.") |
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 weird, maybe use {.code ...
instead? Or at least double quote the option name?
No description provided.