txtProgressBar2 function

Text Progress Bar 2

Text Progress Bar 2

Text progress bar in the R console. Modified from utils::txtProgressBar()

to include title and timing.

txtProgressBar2( min = 0, max = 1, initial = 0, char = "=", width = NA, title = "" )

Arguments

  • min: Numeric value for minimum of the progress bar.
  • max: Numeric value for maximum of the progress bar.
  • initial: Initial value for the progress bar.
  • 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: Title for the progress bar.

Returns

An object of class "txtProgressBar".

Details

Use utils::setTxtProgressBar() to set the progress bar and close() to close it.

  • Maintainer: Myles Lewis
  • License: MIT + file LICENSE
  • Last published: 2025-03-10