Skip to content

Commit

Permalink
format censoring types in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Aug 28, 2024
1 parent d27308e commit 6baabeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/standalone-survival.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
good_type <- all(obj_type %in% type)
if (!good_type && fail) {
cli::cli_abort(
"For this usage, the allowed censoring type{?s} {?is/are} {.or {type}}.",
"For this usage, the allowed censoring
type{?s} {?is/are} {.or {.val {type}}}.",
call = call
)
}
Expand Down

0 comments on commit 6baabeb

Please sign in to comment.