handler_beepr {progressr} | R Documentation |
Progression Handler: Progress Reported as 'beepr' Sounds (Audio)
Description
A progression handler for beepr::beep()
.
Usage
handler_beepr(
initiate = 2L,
update = 10L,
finish = 11L,
interrupt = 9L,
intrusiveness = getOption("progressr.intrusiveness.audio", 5),
target = "audio",
...
)
Arguments
initiate , update , finish , interrupt |
(integer) Indices of |
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 |
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)
}
[Package progressr version 0.14.0 Index]