Skip to content

Commit f5a663d

Browse files
authored
Merge pull request #602 from tidymodels:fix-574
Make `check_num_resamples()` more robust
2 parents a9c72a9 + ba11b2a commit f5a663d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/bootci.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ check_num_resamples <- function(x, B = 1000, call = caller_env()) {
154154
dplyr::filter(n < B)
155155

156156
if (nrow(x) > 0) {
157-
terms <- x$term
157+
terms <- as.character(x$term)
158158
cli_warn(
159159
"Recommend at least {B} non-missing bootstrap resamples for {cli::qty(terms)} term{?s} {.code {terms}}.",
160160
call = call

0 commit comments

Comments
 (0)