Learn R Programming

cooltools (version 2.18)

progress: Show progress while timer in running

Description

Show progress while a timer is running following a call of tick().

Usage

progress(txt = NULL)

Value

None

Arguments

txt

custom text to be displayed. If not provided, the time since calling tick() is displayed.

Author

Danail Obreschkow

See Also

tick tock error

Examples

Run this code

tick('Test')
Sys.sleep(.1)
for (i in seq(3)) {
  progress(i)
  Sys.sleep(.1)
}
tock()

Run the code above in your browser using DataLab