@@ -122,6 +122,10 @@ txtprogressbar_handler <- function(style = 3L, file = stderr(), intrusiveness =
122122# '
123123# ' @example incl/tkprogressbar_handler.R
124124# '
125+ # ' @section Requirements:
126+ # ' This progression handler requires the \pkg{tcltk} package and that the
127+ # ' current R session supports Tcl/Tk (`capabilities("tcltk")`).
128+ # '
125129# ' @export
126130tkprogressbar_handler <- function (intrusiveness = getOption(" progressr.intrusiveness.gui" , 1 ), target = " terminal" , ... ) {
127131 # # Used for package testing purposes only when we want to perform
@@ -189,6 +193,9 @@ tkprogressbar_handler <- function(intrusiveness = getOption("progressr.intrusive
189193# '
190194# ' @param \ldots Additional arguments passed to [make_progression_handler()].
191195# '
196+ # ' @section Requirements:
197+ # ' This progression handler requires MS Windows.
198+ # '
192199# ' @export
193200winprogressbar_handler <- function (intrusiveness = getOption(" progressr.intrusiveness.gui" , 1 ), target = " gui" , ... ) {
194201 # # Used for package testing purposes only when we want to perform
@@ -267,6 +274,9 @@ winprogressbar_handler <- function(intrusiveness = getOption("progressr.intrusiv
267274# '
268275# ' @example incl/pbmcapply_handler.R
269276# '
277+ # ' @section Requirements:
278+ # ' This progression handler requires the \pkg{pbmcapply} package.
279+ # '
270280# ' @importFrom utils file_test flush.console txtProgressBar setTxtProgressBar
271281# ' @export
272282pbmcapply_handler <- function (substyle = 3L , style = " ETA" , file = stderr(), intrusiveness = getOption(" progressr.intrusiveness.terminal" , 1 ), target = " terminal" , ... ) {
@@ -366,6 +376,9 @@ pbmcapply_handler <- function(substyle = 3L, style = "ETA", file = stderr(), int
366376# '
367377# ' @example incl/progress_handler.R
368378# '
379+ # ' @section Requirements:
380+ # ' This progression handler requires the \pkg{progress} package.
381+ # '
369382# ' @export
370383progress_handler <- function (format = " [:bar] :percent :message" , show_after = 0.0 , intrusiveness = getOption(" progressr.intrusiveness.terminal" , 1 ), target = " terminal" , ... ) {
371384 if (! is_fake(" progress_handler" )) {
@@ -440,6 +453,9 @@ progress_handler <- function(format = "[:bar] :percent :message", show_after = 0
440453# '
441454# ' @example incl/beepr_handler.R
442455# '
456+ # ' @section Requirements:
457+ # ' This progression handler requires the \pkg{beepr} package.
458+ # '
443459# ' @export
444460beepr_handler <- function (initiate = 2L , update = 10L , finish = 11L , intrusiveness = getOption(" progressr.intrusiveness.auditory" , 5.0 ), target = " audio" , ... ) {
445461 # # Used for package testing purposes only when we want to perform
@@ -491,6 +507,11 @@ beepr_handler <- function(initiate = 2L, update = 10L, finish = 11L, intrusiven
491507# '
492508# ' @example incl/notifier_handler.R
493509# '
510+ # ' @section Requirements:
511+ # ' This progression handler requires the \pkg{notifier} package, which is only
512+ # ' available from <https://github.com/gaborcsardi/notifier>. This can be
513+ # ' installed as `remotes::install_github("gaborcsardi/notifier@62d484")`.
514+ # '
494515# ' @export
495516notifier_handler <- function (intrusiveness = getOption(" progressr.intrusiveness.notifier" , 10 ), target = " gui" , ... ) {
496517 # # Used for package testing purposes only when we want to perform
@@ -696,6 +717,9 @@ filesize_handler <- function(file = "default.progress", intrusiveness = getOptio
696717# ' with_progress(y <- slow_sum(1:100))
697718# ' }}
698719# '
720+ # ' @section Requirements:
721+ # ' This progression handler requires the \pkg{shiny} package.
722+ # '
699723# ' @export
700724shiny_handler <- function (intrusiveness = getOption(" progressr.intrusiveness.gui" , 1 ), target = " gui" , ... ) {
701725 reporter <- local({
0 commit comments