@@ -35,7 +35,7 @@ message("with_progress() - filesize ...")
3535
3636with_progress({
3737 sum <- slow_sum(x )
38- }, handler_filesize())
38+ }, handlers = handler_filesize())
3939print(sum )
4040stopifnot(sum == truth )
4141
@@ -47,7 +47,7 @@ message("with_progress() - utils::txtProgressBar() ...")
4747if (requireNamespace(" utils" )) {
4848 with_progress({
4949 sum <- slow_sum(x )
50- }, handler_txtprogressbar(style = 2L ))
50+ }, handlers = handler_txtprogressbar(style = 2L ))
5151 print(sum )
5252 stopifnot(sum == truth )
5353}
@@ -59,7 +59,7 @@ message("with_progress() - tcltk::tkProgressBar() ...")
5959
6060with_progress({
6161 sum <- slow_sum(x )
62- }, handler_tkprogressbar )
62+ }, handlers = handler_tkprogressbar )
6363
6464message(" with_progress() - tcltk::tkProgressBar() ... done" )
6565
@@ -68,7 +68,7 @@ message("with_progress() - utils::winProgressBar() ...")
6868
6969with_progress({
7070 sum <- slow_sum(x )
71- }, handler_winprogressbar )
71+ }, handlers = handler_winprogressbar )
7272
7373message(" with_progress() - utils::winProgressBar() ... done" )
7474
@@ -79,7 +79,7 @@ if (requireNamespace("progress")) {
7979 # # Display progress using default handler
8080 with_progress({
8181 sum <- slow_sum(x )
82- }, handler_progress(clear = FALSE ))
82+ }, handlers = handler_progress(clear = FALSE ))
8383 print(sum )
8484 stopifnot(sum == truth )
8585}
@@ -91,7 +91,7 @@ message("with_progress() - pbmcapply::progressBar() ...")
9191
9292with_progress({
9393 sum <- slow_sum(x )
94- }, handler_pbmcapply )
94+ }, handlers = handler_pbmcapply )
9595
9696message(" with_progress() - pbmcapply::progressBar() ... done" )
9797
@@ -100,7 +100,7 @@ message("with_progress() - ascii_alert ...")
100100
101101with_progress({
102102 sum <- slow_sum(x )
103- }, handler_ascii_alert())
103+ }, handlers = handler_ascii_alert())
104104print(sum )
105105stopifnot(sum == truth )
106106
@@ -111,7 +111,7 @@ message("with_progress() - beepr::beep() ...")
111111
112112with_progress({
113113 sum <- slow_sum(x )
114- }, handler_beepr )
114+ }, handlers = handler_beepr )
115115print(sum )
116116stopifnot(sum == truth )
117117
@@ -122,7 +122,7 @@ message("with_progress() - notifier::notify() ...")
122122
123123with_progress({
124124 sum <- slow_sum(x )
125- }, handler_notifier )
125+ }, handlers = handler_notifier )
126126print(sum )
127127stopifnot(sum == truth )
128128
@@ -134,7 +134,7 @@ message("with_progress() - void ...")
134134# # Mute progress updates
135135with_progress({
136136 sum <- slow_sum(x )
137- }, NULL )
137+ }, handlers = NULL )
138138print(sum )
139139stopifnot(sum == truth )
140140
0 commit comments