kenkellner / jagsUI

R package to Run JAGS (Just Another Gibbs Sampler) analyses from within R
https://kenkellner.github.io/jagsUI/
34 stars 8 forks source link

progress bars in jags() when parallel processing? #36

Closed KylieMCurtis closed 4 years ago

KylieMCurtis commented 4 years ago

Is this already in place? Trying to figure out if my model has initialized or not because I am using parallel processing and the code has been running for 2+ weeks

kenkellner commented 4 years ago

If you have downloaded jagsUI from CRAN, then no. You will just get a message that says something like "now running in parallel, output will be suppressed" and you won't get any updates until the run finishes.

If you installed a recent Github version of the package, maybe - there are some progress indicators in parallel now but they only appear in some environments. For example they don't show up in RStudio.

KylieMCurtis commented 4 years ago

Aha, I am using the Github version but in Rstudio. I will try with R. Thanks!

On Thu, Jan 2, 2020 at 11:44 AM Ken Kellner notifications@github.com wrote:

If you have downloaded jagsUI from CRAN, then no. You will just get a message that says something like "now running in parallel, output will be suppressed" and you won't get any updates until the run finishes.

If you installed a recent Github version of the package, maybe - there are some progress indicators in parallel now but they only appear in some environments. For example they don't show up in RStudio.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kenkellner/jagsUI/issues/36?email_source=notifications&email_token=AOFS344PLU7PG6E2LPXK423Q3Y7ZNA5CNFSM4KCF4PHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7GLSA#issuecomment-570320328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFS3423SK7Y3ALGQAOHOQ3Q3Y7ZNANCNFSM4KCF4PHA .

-- Kylie Curtis MS Candidate Conservation Ecology Lab San Diego State University website: http://www.conservationecologylab.com/kylie-curtis.html

kenkellner commented 4 years ago

It may also not work at all in Windows. I'm still sorting out where it doesn't work and why. If it's working you should see some messages about workers starting and models initializing relatively quickly (before any iterations are done).

kenkellner commented 4 years ago

I don't think it's possible to write progress updates to the R console in Windows when running in parallel, at least in the standard R GUI and RStudio. I pushed a change (2d3e574) that writes updates to an HTML file instead that you can view in a browser. It's not ideal but at least you can keep tabs on a long-running model.