Skip to content

Commit 1fcae01

Browse files
cut'n'paste mistake
1 parent e35a073 commit 1fcae01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ To debug progress updates, use:
171171
```r
172172
> handlers("debug")
173173
> with_progress(y <- slow_sum(1:10))
174-
[13:33:50.776] (1.033s => +0.001s) shutdown: 10/10 (+0) '' {clear=TRUE, enabled=TRUE, status=ok}
175174
[13:33:49.743] (0.000s => +0.002s) initiate: 0/10 (+0) '' {clear=TRUE, enabled=TRUE, status=}
176175
[13:33:49.847] (0.104s => +0.001s) update: 1/10 (+1) 'Added 1' {clear=TRUE, enabled=TRUE, status=}
177176
[13:33:49.950] (0.206s => +0.001s) update: 2/10 (+1) 'Added 2' {clear=TRUE, enabled=TRUE, status=}
@@ -184,6 +183,7 @@ To debug progress updates, use:
184183
[13:33:50.670] (0.927s => +0.001s) update: 9/10 (+1) 'Added 9' {clear=TRUE, enabled=TRUE, status=}
185184
[13:33:50.773] (1.030s => +0.001s) update: 10/10 (+1) 'Added 10' {clear=TRUE, enabled=TRUE, status=}
186185
[13:33:50.774] (1.031s => +0.003s) update: 10/10 (+0) 'Added 10' {clear=TRUE, enabled=TRUE, status=}
186+
[13:33:50.776] (1.033s => +0.001s) shutdown: 10/10 (+0) '' {clear=TRUE, enabled=TRUE, status=ok}
187187
```
188188

189189
<small>

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To get progress updates, we can call it as:
6464
The default is to present progress via `utils::txtProgressBar()`, which is available on all R installations. To change the default, to, say, `progress_bar()` by the **[progress]** package, set the following R option(\*):
6565

6666
```r
67-
options(progressr.handlers = progress_handler)
67+
handlers("progress")
6868
```
6969
This progress handler will present itself as:
7070
```r
@@ -78,7 +78,7 @@ This progress handler will present itself as:
7878
Note all progress updates have to be presented visually. This can equally well be done auditory. For example, using:
7979

8080
```r
81-
options(progressr.handlers = beepr_handler)
81+
handlers("beepr")
8282
```
8383
will present itself as sounds played at the beginning, while progressing, and at the end (using different **[beepr]** sounds). There will be _no_ output written to the terminal;
8484
```r
@@ -93,7 +93,7 @@ will present itself as sounds played at the beginning, while progressing, and at
9393

9494
It is possible to have multiple progress handlers presenting progress updates at the same time. For example, to get both visual and auditory updates, use:
9595
```r
96-
options(progressr.handlers = list(txtprogressbar_handler, beepr_handler))
96+
handlers("txtprogressbar", "beepr")
9797
```
9898

9999

@@ -171,9 +171,8 @@ _Figure: Sequence diagram illustrating how signaled progression conditions are c
171171

172172
To debug progress updates, use:
173173
```r
174-
> options(progressr.handlers = debug_handler)
174+
> handlers("debug")
175175
> with_progress(y <- slow_sum(1:10))
176-
[13:33:50.776] (1.033s => +0.001s) shutdown: 10/10 (+0) '' {clear=TRUE, enabled=TRUE, status=ok}
177176
[13:33:49.743] (0.000s => +0.002s) initiate: 0/10 (+0) '' {clear=TRUE, enabled=TRUE, status=}
178177
[13:33:49.847] (0.104s => +0.001s) update: 1/10 (+1) 'Added 1' {clear=TRUE, enabled=TRUE, status=}
179178
[13:33:49.950] (0.206s => +0.001s) update: 2/10 (+1) 'Added 2' {clear=TRUE, enabled=TRUE, status=}
@@ -186,6 +185,7 @@ To debug progress updates, use:
186185
[13:33:50.670] (0.927s => +0.001s) update: 9/10 (+1) 'Added 9' {clear=TRUE, enabled=TRUE, status=}
187186
[13:33:50.773] (1.030s => +0.001s) update: 10/10 (+1) 'Added 10' {clear=TRUE, enabled=TRUE, status=}
188187
[13:33:50.774] (1.031s => +0.003s) update: 10/10 (+0) 'Added 10' {clear=TRUE, enabled=TRUE, status=}
188+
[13:33:50.776] (1.033s => +0.001s) shutdown: 10/10 (+0) '' {clear=TRUE, enabled=TRUE, status=ok}
189189
```
190190

191191
<small>

0 commit comments

Comments
 (0)