Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

handler_beepr

Progression Handler: Progress Reported as 'beepr' Sounds (Audio)


Description

A progression handler for beepr::beep().

Usage

handler_beepr(
  initiate = 2L,
  update = 10L,
  finish = 11L,
  intrusiveness = getOption("progressr.intrusiveness.auditory", 5),
  target = "audio",
  ...
)

Arguments

initiate, update, finish

(integer) Indices of beepr::beep() sounds to play when progress starts, is updated, and completes. For silence, use NA_integer_.

intrusiveness

(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user.

target

(character vector) Specifies where progression updates are rendered.

...

Additional arguments passed to make_progression_handler().

Requirements

This progression handler requires the beepr package.

Examples

if (requireNamespace("beepr", quietly = TRUE)) {

  handlers("beepr")
  with_progress({ y <- slow_sum(1:10) })
  print(y)
  
}

progressr

An Inclusive, Unifying API for Progress Updates

v0.10.0
GPL (>= 3)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.