R/progress.meter.R

progress.meter <- function(i) {
  if      (i == 0) cat("\n      0")
  else if (i %% 50 == 0) cat("\n", formatFix(i, 0, 6))
  else if (i %% 10 == 0) cat((i %/% 10) %% 10)
  else if (i %%  5 == 0) cat("+")
  else cat(".");
  invisible(NULL)
}

Try the cwhmisc package in your browser

Any scripts or data that you put into this service are public.

cwhmisc documentation built on May 1, 2019, 7:55 p.m.