Skip to content

Commit 43656aa

Browse files
progressr 0.5.0
1 parent 5b1aaf9 commit 43656aa

File tree

4 files changed

+32
-52
lines changed

4 files changed

+32
-52
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: progressr
2-
Version: 0.4.0-9000
2+
Version: 0.5.0
33
Title: A Inclusive, Unifying API for Progress Updates
44
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.
55
Authors@R: c(

NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: progressr
22
==================
33

4-
Version: 0.4.0-9000 [2020-04-06]
4+
Version: 0.5.0 [2020-04-16]
55

66
NEW FEATURES:
77

cran-comments.md

Lines changed: 16 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,27 @@
1-
# CRAN submission progressr 0.4.0
1+
# CRAN submission progressr 0.5.0
22

3-
on 2020-01-22
3+
on 2020-04-16
44

5-
This a first submission. I've verified that it passed 'R CMD check --as-cran' on Linux, macOS, Solaris, and Windows, on R 3.5.3, R 3.6.2, and R devel.
5+
I've verified that this submission does not cause issues for the 5 reverse package dependency available on CRAN and Bioconductor.
66

77
Thanks in advance
88

99

1010
## Notes not sent to CRAN
1111

12-
### R CMD check --as-cran validation
12+
### R CMD check validation
1313

1414
The package has been verified using `R CMD check --as-cran` on:
1515

16-
* Platform x86_64-apple-darwin15.6.0 (64-bit) [Travis CI]:
17-
- R version 3.5.3 (2019-03-11)
18-
- R version 3.6.2 (2019-12-12)
19-
20-
* Platform x86_64-unknown-linux-gnu (64-bit) [Travis CI]:
21-
- R version 3.5.3 (2017-01-27) [sic!]
22-
- R version 3.6.2 (2017-01-27) [sic!]
23-
- R Under development (unstable) (2020-01-22 r77696)
24-
25-
* Platform x86_64-pc-linux-gnu (64-bit):
26-
- R version 3.6.2 (2019-12-12)
27-
28-
* Platform x86_64-pc-linux-gnu (64-bit) [r-hub]:
29-
- R version 3.6.1 (2019-07-05)
30-
- R Under development (unstable) (2020-01-18 r77674)
31-
32-
* Platform i686-pc-linux-gnu (32-bit):
33-
- R version 3.4.4 (2018-03-15)
34-
35-
* Platform i386-pc-solaris2.10 (32-bit) [r-hub]:
36-
- R version 3.6.0 (2019-04-26)
37-
38-
* Platform x86_64-w64-mingw32 (64-bit) [r-hub]:
39-
- R Under development (unstable) (2020-01-07 r77637)
40-
41-
* Platform i386-w64-mingw32 (32-bit) [Appveyor CI]:
42-
- R version 3.6.2 (2019-12-12)
43-
- R Under development (unstable) (2020-01-21 r77688)
44-
45-
* Platform x86_64-w64-mingw32/x64 (64-bit) [Appveyor CI]:
46-
- R Under development (unstable) (2020-01-21 r77688)
47-
48-
* Platform x86_64-w64-mingw32/x64 (64-bit) [win-builder]:
49-
- R version 3.6.2 (2019-12-12)
50-
51-
52-
# Not available
53-
54-
* Platform x86_64-w64-mingw32/x64 (64-bit) [win-builder]:
55-
- R Under development (unstable) (2020-01-07 r77633)
56-
- REASON: Too many other packages in the queue.
57-
16+
| R version | GitHub Actions | Travis CI | AppVeyor CI | Rhub | Win-builder | Other |
17+
| ------------------ | -------------- | --------- | ----------- | --------- | ----------- | ------ |
18+
| 3.2.5 | L | | | | | |
19+
| 3.3.3 | L | | | | | |
20+
| 3.4.4 | L | | | | | |
21+
| 3.5.3 | L, M, W | L, M | | | | |
22+
| 3.6.{1,2,3} | L, M, W | L, M | W | L | W | |
23+
| 4.0.0-devel | | | | W | | |
24+
| 4.0.0-{alpha,beta} | | | | | W | L |
25+
| devel | M W | L | W (32 & 64) | L | | |
26+
27+
*Legend: OS: L = Linux, S = Solaris, M = macOS, W = Windows. Architecture: 32 = 32-bit, 64 = 64-bit*

vignettes/progressr-intro.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
%\VignetteKeyword{Renviron}
88
%\VignetteEngine{progressr::selfonly}
99
<!-- DO NOT EDIT THIS FILE! Edit 'OVERVIEW.md' instead and then rebuild this file with 'make vigs' -->
10-
![Life cycle: experimental](imgs/lifecycle-experimental-orange.svg)
10+
![Life cycle: experimental](inst/doc/imgs/lifecycle-experimental-orange.svg)
1111

1212
The **[progressr]** package provides a minimal API for reporting progress updates in [R](https://www.r-project.org/). 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.
1313

1414

15-
<img src="imgs/three_in_chinese.gif" alt="Three strokes writing three in Chinese" style="float: right; margin-right: 1ex; margin-left: 1ex;"/>
15+
<img src="inst/doc/imgs/three_in_chinese.gif" alt="Three strokes writing three in Chinese" style="float: right; margin-right: 1ex; margin-left: 1ex;"/>
1616

1717
Design motto:
1818

@@ -112,6 +112,16 @@ handlers("txtprogressbar", "beepr")
112112
```
113113

114114

115+
### Silence all progress
116+
117+
To silence all progress updates, use:
118+
119+
```r
120+
handlers("void")
121+
```
122+
123+
124+
115125
## Support for progressr elsewhere
116126

117127
Note that progression updates by **progressr** is designed to work out of the box for any _sequential_ iterator framework in R. Below is an set of examples for the most common ones.
@@ -300,7 +310,7 @@ When using the **progressr** package, progression updates are communicated via R
300310

301311

302312

303-
![](imgs/slow_sum.svg)
313+
![](inst/doc/imgs/slow_sum.svg)
304314

305315
_Figure: Sequence diagram illustrating how signaled progression conditions are captured by `with_progress()` and relayed to the two progression handlers 'progress' (a progress bar in the terminal) and 'beepr' (auditory) that the end user has chosen._
306316

@@ -328,7 +338,7 @@ To debug progress updates, use:
328338

329339

330340

331-
[progressr]: https://github.com/HenrikBengtsson/progressr/
341+
[progressr]: https://cran.r-project.org/package=progressr
332342
[beepr]: https://cran.r-project.org/package=beepr
333343
[progress]: https://cran.r-project.org/package=progress
334344
[purrr]: https://cran.r-project.org/package=purrr

0 commit comments

Comments
 (0)