workTimer: Countdown until stop work

Description Usage Arguments Details

View source: R/worktimr.R

Description

Countdown minutes then do something.

Usage

1
2
3
4
5
6
7
workTimer(
  minutes = 25,
  outcome = "lock",
  con = "",
  timerMessage = "time until explosion: ",
  finalMessage = "IT'S OVER!"
)

Arguments

minutes

numeric

outcome

character naming one of "lock", "alarm", or "nothing"

con

character naming output text file

timerMessage

character display before countdown timer

finalMessage

character display when countdown expired

Details

What happens when to the time expires is specified by the outcome argument.

If con is set to an empty character string the output is printed to the console. If a file is named the output is printing to a file, replacing the contents.

The outcome value “alarm” requires that VLC be installed at C:\Program Files\VideoLAN\VLC\vlc.exe on Windows. On Linux it requires vlc to be on the PATH. On Macos it expects VLC to be installed at /Applications/VLC.app.


anhinton/worktimr documentation built on Nov. 26, 2021, 2:01 p.m.