Creates a progress bar using the progress package with customizable formatting.
progress_bar(
total,
msg = "Processing",
width = 80,
show_percent = TRUE,
show_eta = TRUE,
clear = FALSE
)
A progress bar object from the progress package
The total number of items to process
The message to display before the progress bar
The width of the progress bar in characters
Whether to show percentage completion
Whether to show estimated time remaining
Whether to clear the progress bar when done