From 623a9743b23d96a3548f9d0a04e62272e81857ab Mon Sep 17 00:00:00 2001 From: Jakob Richter Date: Fri, 23 Oct 2020 12:46:14 +0200 Subject: [PATCH] fix sprtintf too many arguments --- R/term_conds.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/term_conds.R b/R/term_conds.R index d2d164ee8..ba2459cff 100644 --- a/R/term_conds.R +++ b/R/term_conds.R @@ -20,7 +20,7 @@ makeMBOTerminationMaxIter = function(max.iter) { function(opt.state) { iter = getOptStateLoop(opt.state) term = iter > max.iter - message = if (!term) NA_character_ else sprintf("Maximum number of iterations %i reached with.", max.iter, iter) + message = if (!term) NA_character_ else sprintf("Maximum number of iterations %i reached.", max.iter) return(list(term = term, message = message, code = "term.iter", progress = iter / max.iter)) } }