super_mario | R Documentation |
super_mario
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.
super_mario(sound = 1, expr = NULL)
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:
If |
expr |
An optional expression to be excecuted before the sound. |
If super_mario
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.
# Play a "ping" sound
super_mario()
## Not run:
# Play "bump" instead of a "coin".
super_mario("bump")
# or
super_mario(11)
# Play a random sound
super_mario(0)
# Update all packages and "ping" when it's ready
update.packages(ask=FALSE); super_mario()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.