You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DESCRIPTION
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
Package: progressr
2
-
Version: 0.1.2
2
+
Version: 0.1.3
3
3
Title: A Unifying API for Progress Updates
4
4
Description: A minimal API for reporting progress updates upstream. The design is to separate the representation of progress updates from how they are presented. What type of progress to signal is controlled by the developer. How these progress updates are rendered is controlled by the end user. For instance, some users may prefer visual feedback such as a horizontal progress bar in the terminal, whereas others may prefer auditory feedback.
Copy file name to clipboardExpand all lines: OVERVIEW.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,19 @@ with_progress({
102
102
```
103
103
104
104
105
+
## Roadmap
106
+
107
+
Because this project is under active development, the progressr API is currently kept at a very minimum. This will allow for the framework and the API to evolve while minimizing the risk for breaking code that depends on it. The roadmap for developing the API is roughly:
108
+
109
+
1. Provide minimal API for producing progress updates, i.e. `progressor()` and `with_progress()`
110
+
111
+
2. Add support for nested progress updates
112
+
113
+
3. Add API to allow users and package developers to design additional progression handlers
114
+
115
+
For a more up-to-date view on what features might be added, see <https://github.com/HenrikBengtsson/progressr/issues>.
#' Below are all \R options that are currently used by the \pkg{progressr} package.\cr
4
+
#' \cr
5
+
#' \emph{WARNING: Note that the names and the default values of these options may change in future versions of the package. Please use with care until further notice.}
6
+
#'
7
+
#'
8
+
#' @section Options for controlling progression reporting:
9
+
#'
10
+
#' \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`)}
12
+
#' }
13
+
#'
14
+
#'
15
+
#' @section Options for controlling progression handlers:
16
+
#'
17
+
#' \describe{
18
+
#' \item{\option{progressr.clear}:}{(logical) If TRUE, any output, typically visual, produced by a reporter will be cleared/removed upon completion, if possible. (Default: TRUE)}
19
+
#'
20
+
#' \item{\option{progressr.enable}:}{(logical) If FALSE, then progress is not reported. (Default: TRUE)}
21
+
#'
22
+
#' \item{\option{progressr.enable_after}:}{(numeric) Delay (in seconds) before progression updates are reported. (Default: `0.0`)}
23
+
#'
24
+
#' \item{\option{progressr.times}:}{(numeric) The maximum number of times a handler should report progression updates. If zero, then progress is not reported. (Default: `+Inf`)}
25
+
#'
26
+
#' \item{\option{progressr.interval}:}{(numeric) The minimum time (in seconds) between successive progression updates from this handler. (Default: `0.0`)}
27
+
#'
28
+
#' \item{\option{progressr.intrusiveness}:}{(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user. This multiplicative scalar applies to the _interval_ and _times_ parameters. (Default: `1.0`)\cr
29
+
#'
30
+
#' \describe{
31
+
#' \item{\option{progressr.intrusiveness.auditory}:}{(numeric) intrusiveness for auditory progress handlers (Default: `5.0`)}
32
+
#' \item{\option{progressr.intrusiveness.file}:}{(numeric) intrusiveness for file-based progress handlers (Default: `5.0`)}
33
+
#' \item{\option{progressr.intrusiveness.gui}:}{(numeric) intrusiveness for graphical-user-interface progress handlers (Default: `1.0`)}
34
+
#' \item{\option{progressr.intrusiveness.notifier}:}{(numeric) intrusiveness for progress handlers that creates notifications (Default: `10.0`)}
35
+
#' \item{\option{progressr.intrusiveness.terminal}:}{(numeric) intrusiveness for progress handlers that outputs to the terminal (Default: `1.0`)}
36
+
#' \item{\option{progressr.intrusiveness.debug}:}{(numeric) intrusiveness for "debug" progress handlers (Default: `0.0`)}
37
+
#' }
38
+
#' }
39
+
#' }
40
+
#'
41
+
#' @section Options for controlling how standard output and conditions are relayed:
42
+
#'
43
+
#' \describe{
44
+
#' \item{\option{progressr.delay_conditions}:}{(character vector) condition classes to be captured and relayed at the end after any captured standard output is relayed. (Default: `c("condition")`)}
45
+
#'
46
+
#' \item{\option{progressr.delay_stdout}:}{(logical) If TRUE, standard output is captured and relayed at the end just before any captured conditions are relayed. (Default: TRUE)}
47
+
#' }
48
+
#'
49
+
#'
50
+
#' @section Options for debugging progression updates:
51
+
#'
52
+
#' \describe{
53
+
#' \item{\option{progressr.debug}:}{(logical) If TRUE, extensive debug messages are generated. (Default: FALSE)}
54
+
#' }
55
+
#'
56
+
#'
57
+
#' @section Options for progressr examples and demos:
58
+
#'
59
+
#' \describe{
60
+
#' \item{\option{progressr.delay}:}{(numeric) Delay (in seconds) between each iteration of [slow_sum()]. (Default: `1.0`)}
61
+
#' }
62
+
#'
63
+
#'
64
+
#' @seealso
65
+
#' To set \R options when \R starts (even before the \pkg{progressr} package is loaded), see the \link[base]{Startup} help page. The \href{https://cran.r-project.org/package=startup}{\pkg{startup}} package provides a friendly mechanism for configurating \R's startup process.
0 commit comments