Skip to content

Commit 6b8f688

Browse files
committed
fix mistake in formatting to cli_inform, and wrap one more instance of cli_inform, replacing format_message + message(msg) approach
1 parent 2643c01 commit 6b8f688

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

R/inference.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ run_samplers <- function(samplers,
344344
if (local_parallel_multiple_samplers) {
345345
cores_text <- compute_text(n_cores, compute_options)
346346
cli::cli_inform(
347-
"\n",
348-
"running {length(samplers)} samplers in parallel, ",
349-
"{cores_text}",
350-
"\n\n"
347+
message = c("
348+
running {length(samplers)} samplers in parallel,
349+
{cores_text} \n\n"
350+
)
351351
)
352352
}
353353

R/inference_class.R

+1-2
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,7 @@ sampler <- R6Class(
557557
}
558558

559559
if (!identical(msg, "")) {
560-
msg <- cli::format_message(msg)
561-
message(msg)
560+
cli::cli_inform(msg)
562561
cat("\n")
563562
}
564563
},

0 commit comments

Comments
 (0)