Skip to content

Commit 64ca0da

Browse files
Promote handlers() over option 'progressr.handlers'
1 parent 25f2d37 commit 64ca0da

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

R/options.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' @section Options for controlling progression reporting:
99
#'
1010
#' \describe{
11-
#' \item{\option{progressr.handlers}:}{(function or list of functions) Zero or more progression handlers that will report on any progression updates. If NULL or an empty list, progress updates are ignored. (Default: `txtprogressbar_handler`)}
11+
#' \item{\option{progressr.handlers}:}{(function or list of functions) Zero or more progression handlers that will report on any progression updates. If empty list, progress updates are ignored. If NULL, the default (`txtprogressbar_handler`) progression handlers is used. The recommended way to set this option is via [progressr::handlers()]. (Default: NULL)}
1212
#' }
1313
#'
1414
#'

R/progression_handlers.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ newline_handler <- function(symbol = "\n", file = stderr(), intrusiveness = getO
625625
#'
626626
#' @examples
627627
#' \donttest{\dontrun{
628-
#' options(progressr.handlers = filesize_handler(file = "myscript.progress"))
628+
#' handlers(filesize_handler(file = "myscript.progress"))
629629
#' with_progress(y <- slow_sum(1:100))
630630
#' }}
631631
#'
@@ -692,7 +692,7 @@ filesize_handler <- function(file = "default.progress", intrusiveness = getOptio
692692
#'
693693
#' @examples
694694
#' \donttest{\dontrun{
695-
#' options(progressr.handlers = shiny_handler())
695+
#' handlers(shiny_handler())
696696
#' with_progress(y <- slow_sum(1:100))
697697
#' }}
698698
#'

man/filesize_handler.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/progressr.options.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/shiny_handler.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)