From d27308e5fb5b7a175c599e5eb8f73db0f32deaa0 Mon Sep 17 00:00:00 2001 From: topepo Date: Wed, 28 Aug 2024 13:18:23 -0400 Subject: [PATCH] move from rlang to cli error function --- R/standalone-survival.R | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/R/standalone-survival.R b/R/standalone-survival.R index ab1033171..311d948e1 100644 --- a/R/standalone-survival.R +++ b/R/standalone-survival.R @@ -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. # @@ -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 )