Skip to content

Commit 6d4eb58

Browse files
More intuitive milestone steps [#80]
1 parent 701ca3a commit 6d4eb58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/make_progression_handler.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,10 @@ make_progression_handler <- function(name, reporter = list(), handler = NULL, en
328328
## update of the reporter
329329
milestones <<- if (times == 1L) {
330330
c(max_steps)
331+
} else if (times == 2L) {
332+
c(0L, max_steps)
331333
} else {
332-
seq(from = 1L, to = max_steps, length.out = times)
334+
seq(from = 0L, to = max_steps, length.out = times + 1L)[-1]
333335
}
334336

335337
## Timestamps for when steps where reached

0 commit comments

Comments
 (0)