Make an R / RStudio beep after * every * command

My question relates to making an R-signal after a command . I understand that I can run beep()along with any command that I want to run, but is there a way to automatically run beep()(from the package beepr) or system("say done")(I run RStudio on Mac) after each command?

eg. Is there a parameter options()that I can configure so that after entering each command in the interpreter another command is executed, for example beep()?

+4
source share
1 answer

You want addTaskCallback .

addTaskCallback(function(...) { system("say done"); TRUE }, name = "announce when done")

Good luck

+5
source

Source: https://habr.com/ru/post/1659584/


All Articles