Skip to contents

Display a progress bar to use within a for loop

Usage

pb(index, niter, width = 40)

Arguments

index

Integer that indicate the current iteration

niter

Integer that indicate the total number of iterations

width

Maximum width of the console output