handler_notifier: Progression Handler: Progress Reported via the...

Description Usage Arguments Requirements Examples

View source: R/handler_notifier.R

Description

A progression handler for notify() of the notifier package.

Usage

1
2
3
4
5
handler_notifier(
  intrusiveness = getOption("progressr.intrusiveness.notifier", 10),
  target = "gui",
  ...
)

Arguments

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 notifier package, which is only available from https://github.com/gaborcsardi/notifier. This can be installed as remotes::install_github("gaborcsardi/notifier@62d484").

Examples

1
2
3
4
5
6
7
8
pkg <- "notifier"
if (requireNamespace(pkg, quietly = TRUE)) {

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

Example output



progressr documentation built on Sept. 24, 2021, 5:07 p.m.