Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Is there a way to make R beep/play a sound at the end of a script?

When I run R scripts I go do something else on a different desktop. If I don't check frequently, I never know when something is finished. Is there a way to invoke a beep (like a system beep) or get R to play a sound or notify growl via some code at the end of my script?
by

2 Answers

vishaljlf39
alarm()

The alarm function. It works by sending \a to the console
RoliMishra
I have a package (beepr) with the sole purpose of making notification sounds in R which should work cross-platform. Run the following to install beepr and make a sound:

install.packages("beepr")
library(beepr)
beep()

Login / Signup to Answer the Question.