beepr
beepr copied to clipboard
`beep_on_warning` that doesn't restart/halt the process
Based on the code from the package I'm working on (catchr), I think I've written beep_on_warning in such a way that it doesn't halt/restart the process it's wrapping when it plays the sound.
Additionally, I've written a function, beep_on_condition, which is a generalized version of both beep_on_warning and beep_on_error. You can wrap an expression and supply a named list as a parameter, which lets you decide which sound(s) each different condition triggers.
Tell me if this doesn't solve the issue that you mention in beep_on_error! If it works, please attribute me :)