Make R beep at end of script or function! – and what does the fox say?

How many times have you wondered if you could just make R play a system beep or any type of sound notification at the end of your script?

The alarm() function does just that!

alarm()

If you are on a MAC you can even make your computer speak (fun!):

system("say Analysis finished!")

What does the Fox say? (in R)

Why not playing a number of possible fox vocalizations at the end of your script?!

system("say What does the fox say? Gering-ding-ding-atee-hatee-hatee-ho")
system("say Chacha-chacha-chacha-chow")
system("say -v Kathy ha-hee ha-hee")

And more:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s