Skip to contents

Wrapper of `Sys.sleep()` using `progress` package

Usage

progress_sleep(time, format = " waiting [:bar] :percent eta: :eta", ...)

Arguments

time

The time interval to suspend execution for, in seconds.

format

The format of the progress bar. A number of tokens can be used here, see them below. It defaults to "[:bar] :percent", which means that the progress bar is within brackets on the left, and the percentage is printed on the right. Source: progress package.

...

Parameters for progress::progress_bar$new

Examples


progress_sleep(5)

system.time(progress_sleep(10))
#>    user  system elapsed 
#>   0.003   0.000  11.015