university-of-newcastle-research / pmwg

Repository for code for the Samplers Team at UoN
3 stars 3 forks source link

Improved progress bar #48

Closed gjcooper closed 1 year ago

gjcooper commented 3 years ago

Is your feature request related to a problem? Please describe. When messages/warnings are displayed it "interrupts" the progress bar which makes the display messy

Describe the solution you'd like Something that overwrites the current output with the messages and progress.

Describe alternatives you've considered Leave as is and improve warning messages only

Additional context See possible implementation test

for (i in 1:5) {
  message('\033[F\r', paste('Running', i))
  message('\r', strrep("=",i), appendLF = FALSE)
  Sys.sleep(1)
}
gjcooper commented 1 year ago

Rather than overwrite the whole screen as suggested it may be better to "hold" the warnings/messages until after the current stage has finished (or at least all but the first one perhaps)

gjcooper commented 1 year ago

Closed by 6703f00