View source: R/autolabel_latex_captions.R
beep_on_knit_error | R Documentation |
This function requires the beepr
package. It will first set the global chunk function to error=TRUE
(so knitr won't stop on errors), but then adds a hook that will catch these errors, play a sound, and then throw an error anyway, shutting it down.
Will not beep for non-code chunk errors.
beep_on_knit_error(beep_sound = 9, sleep = 2)
beep_sound |
Input to |
sleep |
The amount of seconds to sleep before moving on (so that the sound isn't cut off after it knits) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.