beep_on_knit_error: Beep on knit error

View source: R/autolabel_latex_captions.R

beep_on_knit_errorR Documentation

Beep on knit error

Description

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.

Usage

beep_on_knit_error(beep_sound = 9, sleep = 2)

Arguments

beep_sound

Input to beepr::beep() for what sound to play

sleep

The amount of seconds to sleep before moving on (so that the sound isn't cut off after it knits)


burchill/zplyr documentation built on Feb. 2, 2023, 11:01 a.m.