Learn R Programming

peRspective (version 0.1.1)

print_progress: Print progress in purrr::imap environment

Description

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

Usage

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

Run this code
# NOT RUN {
## Print progress (1 out of 100)
print_progress(1, 100)

## Only print percentage
print_progress(1, 100, print_prct = TRUE)
# }

Run the code above in your browser using DataLab