futureverse / progressr

三 R package: An Inclusive, Unifying API for Progress Updates
https://progressr.futureverse.org
281 stars 12 forks source link

[Bug] Error in if (config$max_steps == 0) 1 else state$step/config$max_steps #168

Closed JoseMMerida closed 1 week ago

JoseMMerida commented 7 months ago

While executing the handler_filesize i am constantly having this error: Error in if (config$max_steps == 0) 1 else state$step/config$max_steps

I am executing the R script through the CLI. I have tried to track back in thecode where it is happening, but it is supposed to be initialized in each invocation of the progress bar.

HenrikBengtsson commented 7 months ago

Can you please provide a minimal reproducible example, session info details, etc. Otherwise, it will be a big guessing game trying to figure this one out.

HenrikBengtsson commented 1 week ago

There must be more to the error message than just Error in if (config$max_steps == 0) 1 else state$step/config$max_steps. Can you please share all your output?

HenrikBengtsson commented 1 week ago

Without a reproducible example, I made a best guess what's going on, and tried to fix it in the 'develop' branch.