Skip to content

Commit

Permalink
fix sprtintf too many arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-r committed Oct 23, 2020
1 parent 306072f commit 623a974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/term_conds.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit 623a974

Please sign in to comment.