Learn R Programming

eyeris (version 2.1.1)

progress_bar: Create a progress bar for tracking operations

Description

Creates a progress bar using the progress package with customizable formatting.

Usage

progress_bar(
  total,
  msg = "Processing",
  width = 80,
  show_percent = TRUE,
  show_eta = TRUE,
  clear = FALSE
)

Value

A progress bar object from the progress package

Arguments

total

The total number of items to process

msg

The message to display before the progress bar

width

The width of the progress bar in characters

show_percent

Whether to show percentage completion

show_eta

Whether to show estimated time remaining

clear

Whether to clear the progress bar when done