txtProgressBar: Simple Progress Bar

Description Usage Arguments Author(s)

Description

Creates a simple progress bar with title. This function is identical to utils::txtProgressBar but allow adding a title to the progress bar, and can be shared by multiple processes, e.g., in multicore or multi-hosts computations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
txtProgressBar(
  min = 0,
  max = 1,
  initial = 0,
  char = "=",
  width = NA,
  title = if (style == 3) " ",
  label,
  style = 1,
  file = "",
  shared = NULL
)

Arguments

min

(finite) numeric values for the extremes of the progress bar. Must have min < max.

max

(finite) numeric values for the extremes of the progress bar. Must have min < max.

initial

initial or new value for the progress bar. See ‘Details’ for what happens with invalid values.

char

the character (or character string) to form the progress bar.

width

the width of the progress bar, as a multiple of the width of char. If NA, the default, the number of characters is that which fits into getOption("width").

title

ignored, for compatibility with other progress bars.

label

ignored, for compatibility with other progress bars.

style

the ‘style’ of the bar – see ‘Details’.

file

an open connection object or "" which indicates the console: stderr() might be useful here.

shared

specification of a shared directory to use when the progress bar is to be used by multiple processes.

Author(s)

R Core Team


renozao/NMF documentation built on June 14, 2020, 9:35 p.m.