Skip to content

Conversation

@mronkko
Copy link
Contributor

@mronkko mronkko commented Dec 13, 2025

Configure pbapply to display text-based progress bars when running
in non-interactive mode (e.g., batch jobs, Rscript). Previously,
progress tracking was disabled in non-interactive sessions, making
it impossible to monitor simulation progress in SLURM log files.

Changes:

  • R/analysis.R: Add pboptions configuration to force type="txt"
    in non-interactive mode while preserving timer bars in interactive
    sessions
  • R/runSimulation.R: Update progress parameter documentation to
    describe the new behavior

Interactive users see no change. Non-interactive users (SLURM, batch
jobs) now see text progress bars when monitoring logs via tail -f.

Fixes #75

Configure pbapply to display text-based progress bars when running
in non-interactive mode (e.g., batch jobs, Rscript). Previously,
progress tracking was disabled in non-interactive sessions, making
it impossible to monitor simulation progress in SLURM log files.

Changes:
- R/analysis.R: Add pboptions configuration to force type="txt"
  in non-interactive mode while preserving timer bars in interactive
  sessions
- R/runSimulation.R: Update progress parameter documentation to
  describe the new behavior

Interactive users see no change. Non-interactive users (SLURM, batch
jobs) now see text progress bars when monitoring logs via tail -f.

Fixes philchalmers#75
Copy link
Contributor Author

@mronkko mronkko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a function for design-level data preparation. See #74

@philchalmers
Copy link
Owner

Could you separate these two pull requests? The ladder commit doesn't quite fit with what I'm thinking should be done.

@philchalmers philchalmers merged commit e9c93b4 into philchalmers:main Dec 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Progress monitoring does not work when runnign on a cluster

2 participants