Skip to content

Replace base R message/warning/stop with {cli} #762

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

Merged
merged 16 commits into from
Sep 1, 2024
Merged
Prev Previous commit
Next Next commit
Add stopifnot to undesirable functions
  • Loading branch information
jamesmbaazam committed Aug 29, 2024
commit beddcffbdfd2a380868a910578ed038e34600f1e
4 changes: 3 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ linters: linters_with_tags(
tags = NULL, # include all linters
implicit_integer_linter = NULL,
extraction_operator_linter = NULL,
keyword_quote_linter = NULL,
undesirable_function_linter(
fun = c(
# Base messaging
"message" = "use cli::cli_inform()",
"warning" = "use cli::cli_warn()",
"stop" = "use cli::cli_abort()"
"stop" = "use cli::cli_abort()",
"stopifnot" = "use cli::cli_abort()"
)
),
function_argument_linter = NULL,
Expand Down