setup_progress_bar: Setup progress bar for batch processing
Description
Setup progress bar for batch processing
Usage
setup_progress_bar(n_items, bin_size, verbosity)
Value
A list with bin_ind (vector), pb (progress bar object or NULL), and max_bin
Arguments
- n_items
Total number of items to process
- bin_size
Size of each batch/bin
- verbosity
An integer specifying the verbosity level: 0 (silent), 1 (messages only), or 2 (messages and progress bars)