My question relates to making R beep after a command. I understand that I can run beep()
together with whatever command I want to run, but is there a way to automatically run beep()
(from beepr
package) or system("say done")
(I run RStudio on a Mac) after every command?
e.g. is there a options()
setting I can tweak so that after entering every command in the interpreter another command like beep()
is executed?
You want addTaskCallback.
addTaskCallback(function(...) { system("say done"); TRUE }, name = "announce when done")
Have fun!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With