R/messages.R

Defines functions print_iter

Documented in print_iter

#' print iterations to console
#' @param iter Number of iterations
#'
#' @keywords internal
print_iter <- function(iter) {
  if (iter <= 10 | iter %% 10 == 0) cat("\n", glue("iter: {iter}"))
  if (iter >  10 & iter %% 10 != 0) cat(".")
}
kuriwaki/clusterCVR documentation built on July 31, 2024, 8:28 p.m.