timer: Timer alarm

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/timer.R

Description

Beeps in a given interval and gives a progress bar in the console

Usage

1
timer(interval = 20, n = 15, write = FALSE)

Arguments

interval

alarm interval in seconds. DEFAULT: 20

n

number of alarm signals to be given. DEFAULT: 15

write

Should the actual estimated time be written for overhead computing time control purposes? DEFAULT: FALSE

Details

defaults to practice useR lightning talks: 15 slides, each shown 20 secs, change automatically

Value

none

Author(s)

Berry Boessenkool, [email protected], June 2015

References

http://user2015.math.aau.dk/lightning_talks

See Also

alarm, Sys.sleep, txtProgressBar

Examples

1
2
3
4
5
6
## Not run: ## Skip time consuming checks on CRAN
timer(interval=0.5, n=3)
timer(interval=0.2, n=8, write=TRUE) # a slight deviation occurs for a large n
timer() # to practice lightning talks at useR! conferences

## End(Not run)

berryFunctions documentation built on Nov. 17, 2017, 7:29 a.m.