PB: Create a progress bar

View source: R/zzz.R

PBR Documentation

Create a progress bar

Description

Progress bars are useful ways of getting updates on how close a task is to completion. However, they can get in the way of RMarkdown documents with lots of unnecesssary printing. PB is a convenience function that creates progress bars with the following defaults

  • char = '='

  • style = 3

  • file = stderr()

Usage

PB()

Value

An object of class txtProgressBar

See Also

txtProgressBar stderr

Examples


pb <- SeuratDisk:::PB()
for (i in 1:10) {
  utils::setTxtProgressBar(pb, i / 10)
}
close(pb)


mojaveazure/seurat-disk documentation built on Nov. 5, 2023, 9:40 a.m.