chrono_trigger: Play a short sound from Chrono Trigger

View source: R/chrono_trigger.R

chrono_triggerR Documentation

Play a short sound from Chrono Trigger

Description

chrono_trigger plays a short sound which is useful if you want to get notified, for example, when a script has finished. As an added bonus there are a number of different sounds to choose from. If chrono_trigger is not able to play the sound a warning is issued rather than an error. This is in order to not risk aborting or stopping the process that you wanted to get notified about.

Usage

chrono_trigger(sound = 1, expr = NULL)

Arguments

sound

character string or number specifying what sound to be played by either specifying one of the built in sounds, specifying the path to a wav file or specifying an url. The default is 1. Possible sounds are:

  1. "save"

  2. "draw"

  3. "leenes_bell"

  4. "croak"

  5. "chest"

  6. "epoch"

  7. "strike"

  8. "temporal"

  9. "timegate"

  10. "wrong"

  11. "black_tyrano"

  12. "continuum"

  13. "destruction"

  14. "water_drip"

  15. "grunt"

  16. "gulls"

  17. "lavos"

  18. "robo"

If sound does not match any of the sounds above, or is a valid path or url, a random sound will be played. Currently chrono_trigger can only handle http urls, https is not supported.

expr

An optional expression to be excecuted before the sound.

Examples

# Play a "save" sound
chrono_trigger()

## Not run: 
# Play "gulls" instead of a "save".
chrono_trigger("gulls")
# or
chrono_trigger(16)

# Play a random sound
chrono_trigger(0)

# Update all packages and "ping" when it's ready
update.packages(ask=FALSE); chrono_trigger()

## End(Not run)

wolfm4ne/geekr documentation built on Oct. 3, 2023, 4:44 p.m.