Provide iterator number and total length of items to be iterated over

print_progress(x, total, print_prct = F)

Arguments

x

iterator number.

total

length of items to be iterated over.

print_prct

only print percentage progress (defaults to FALSE).

Value

a chr

Examples

## Print progress (1 out of 100) print_progress(1, 100)
#> 1 out of 100 (1.00%) #>
## Only print percentage print_progress(1, 100, print_prct = TRUE)
#> 1.00%