inst/testme/test-debug.R

library(progressr)

message("with_progress() - progressr.debug = TRUE ...")

options(progressr.debug = TRUE)

with_progress({
  y <- slow_sum(1:10)
})


with_progress({
  p <- progressor(steps = 1 + 2 + 1)
  relay_progress <- progress_aggregator(p)
  cond <- p()
  relay_progress(slow_sum(1:2))
  p(type = "finish")
  p() ## one too many - will be ignored
})


message("with_progress() - progressr.debug = TRUE ... done")

Try the progressr package in your browser

Any scripts or data that you put into this service are public.

progressr documentation built on March 31, 2026, 9:07 a.m.