Wrapper of `Sys.sleep()` using `progress` package
progress_sleep.Rd
Wrapper of `Sys.sleep()` using `progress` package
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