Skip to content

Commit

Permalink
Merge pull request #470 from tidymodels/even-better-brier_survival_in…
Browse files Browse the repository at this point in the history
…tegrated-error
  • Loading branch information
EmilHvitfeldt authored Dec 15, 2023
2 parents ce9da1d + 9a318d8 commit 2285618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/surv-brier_survival_integrated.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ brier_survival_integrated_vec <- function(truth,
num_eval_times <- get_unique_eval_times(estimate)
if (num_eval_times < 2) {
cli::cli_abort(
"At least 2 evaluation time{?s} {?is/are} required. \\
Only {num_eval_times} unique time{?s} {?was/were} given."
"At least 2 evaluation times are required. \\
Only {num_eval_times} unique time was given."
)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/surv-brier_survival_integrated.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
brier_survival_integrated(data = lung_surv, truth = surv_obj, .pred)
Condition
Error in `brier_survival_integrated()`:
! At least 2 evaluation time is required. Only 1 unique time was given.
! At least 2 evaluation times are required. Only 1 unique time was given.

0 comments on commit 2285618

Please sign in to comment.