progress.meter {cwhtool}R Documentation

Monitor the progress of a repetitive calculation.

Description

progress.meter writes a symbol to the output at each invocation. The symbol is usually a ".", a "+" if i %% == 0, and (ii %/% 10) %% 10 if ii %% 10 == 0. If ii %% 50 == 0, a line break will be written and i printed.

Usage

progress.meter(i)

Arguments

i An integer.

Value

invisible(NULL).

Author(s)

Christian W. Hoffmann, christian.hoffmann@wsl.ch, http://www.wsl.ch/staff/christian.hoffmann

Examples

cat("\n    0")
for (ii in seq(500)) {
  # do something time consuming
  progress.meter(ii)
}
cat("\n")

[Package cwhtool version 1.0.4 Index]