Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


joker (version 0.14.2)

progress: Progress Bar

Description

Create a progress bar to be used with for loops that can possibly take a lot of time.

Usage

progress_bar(iter, total, start, message = NULL, width = 20)

format_hms(seconds)

Value

format_hms() returns a character in the hh:mm:ss format. progress_bar()

prints the progress bar on the console, calling cat(), therefore as returns an invisible NULL.

Arguments

iter

integer. The current iteration step of the for loop.

total

integer. The total number of iterations.

start

POSIXct. The start time, as returned by Sys.time().

message

character. A message appearing before the progress bar.

width

integer. The length of the progress bar.

seconds

integer. Seconds to be converted into hh:mm:ss format.