Learn R Programming

⚠️There's a newer version (0.15.1) of this package.Take me there.

progressr (version 0.6.0)

A Inclusive, Unifying API for Progress Updates

Description

A minimal, unifying API for scripts and packages to report progress updates from anywhere including when using parallel processing. The package is designed such that the developer can to focus on what progress should be reported on without having to worry about how to present it. The end user has full control of how, where, and when to render these progress updates, e.g. in the terminal using utils::txtProgressBar() or progress::progress_bar(), in a graphical user interface using utils::winProgressBar(), tcltk::tkProgressBar() or shiny::withProgress(), via the speakers using beep::beepr(), or on a file system via the size of a file. Anyone can add additional, customized, progression handlers. The 'progressr' package uses R's condition framework for signaling progress updated. Because of this, progress can be reported from almost anywhere in R, e.g. from classical for and while loops, from map-reduce APIs like the lapply() family of functions, 'purrr', 'plyr', and 'foreach'. It will also work with parallel processing via the 'future' framework, e.g. future.apply::future_lapply(), furrr::future_map(), and 'foreach' with 'doFuture'. The package is compatible with Shiny applications.

Copy Link

Version

Install

install.packages('progressr')

Monthly Downloads

194,261

Version

0.6.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

May 19th, 2020

Functions in progressr (0.6.0)

handler_txtprogressbar

Progression Handler: Progress Reported as Plain Progress Bars (Text) in the Terminal
handler_filesize

Progression Handler: Progress Reported as the Size of a File on the File System
progress_progressr

Use Progressr with Plyr Map-Reduce Functions
progressr.options

Options and environment variables used by the 'progressr' packages
progressor

Create a Progressor Function that Signals Progress Updates
progress_aggregator

Aggregate Progression Conditions
handler_void

Progression Handler: No Progress Report
handler_winprogressbar

Progression Handler: Progress Reported as a MS Windows Progress Bars in the GUI
with_progress

Report on Progress while Evaluating an R Expression
handlers

Control How Progress is Reported
make_progression_handler

Creates a Progression Calling Handler
withProgressShiny

Use Progressr in Shiny Apps: Plug-in Backward Compatibility Replacement for shiny::withProgress()
slow_sum

Slowly Calculate Sum of Elements
progression

A Progression Condition
progressr

progressr: A Unifying API for Progress Updates
progress

Creates and Signals a Progression Condition
handler_notifier

Progression Handler: Progress Reported via the Operating-System Notification Framework (GUI, Text)
handler_tkprogressbar

Progression Handler: Progress Reported as a Tcl/Tk Progress Bars in the GUI
handler_pbmcapply

Progression Handler: Progress Reported via 'pbmcapply' Progress Bars (Text) in the Terminal
handler_ascii_alert

Progression Handler: Progress Reported as ASCII BEL Symbols (Audio or Blink) in the Terminal
handler_progress

Progression Handler: Progress Reported via 'progress' Progress Bars (Text) in the Terminal
handler_debug

Progression Handler: Progress Reported as Debug Information (Text) in the Terminal
handler_newline

Progression Handler: Progress Reported as a New Line (Text) in the Terminal
handler_shiny

Progression Handler: Progress Reported via 'shiny' Widgets (GUI) in the HTML Browser
handler_beepr

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