Skip to content

Commit ee91327

Browse files
TESTS: woops, forgot to add progressor
1 parent 9a951a2 commit ee91327

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/zzz,doFuture.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ if (requireNamespace("doFuture", quietly = TRUE)) {
55
library("doFuture", character.only = TRUE)
66
registerDoFuture()
77
with_progress({
8+
p <- progressor(10)
89
y <- foreach(x = 1:10) %dopar% {
10+
p()
911
slow_sum(x, stdout=TRUE, message=TRUE)
1012
}
1113
})

tests/zzz,future.apply.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ options(progressr.interval = 0.0, progressr.delay = 0.01)
33

44
if (requireNamespace("future.apply", quietly = TRUE)) {
55
with_progress({
6+
p <- progressor(10)
67
y <- future.apply::future_lapply(1:10, function(x) {
8+
p()
79
slow_sum(x, stdout=TRUE, message=TRUE)
810
})
911
})

0 commit comments

Comments
 (0)