Skip to content

Commit

Permalink
move from rlang to cli error function
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Aug 28, 2024
1 parent 971be45 commit d27308e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/standalone-survival.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#

# ## Changelog
# 2024-08-28
# * .check_cens_type() and .is_surv now use cli error formats.
#
# 2024-01-10
# * .filter_eval_time() gives more informative warning.
#
Expand Down Expand Up @@ -68,7 +71,7 @@
obj_type <- .extract_surv_type(surv)
good_type <- all(obj_type %in% type)
if (!good_type && fail) {
rlang::abort(
cli::cli_abort(
"For this usage, the allowed censoring type{?s} {?is/are} {.or {type}}.",
call = call
)
Expand Down

0 comments on commit d27308e

Please sign in to comment.