My question here is not how to create a single progress bar, but instead how to create a progress bar that keeps track and updates two different processes. For example within the same window I'd like to have a bar keeping track of the current simulation index and another bar keeping track of another series of numbers...my current code is:
library(tcltk2)
pb1 <- tkProgressBar(title = "Simulation Progress...", min = 1, max = 10, width = 300)
pb2 <- tkProgressBar(title = "Simulation Progress...", min = 2000, max = 2020, width = 300)
for (index in 1:10){
setTkProgressBar(pb1, index, label = paste("Index",index))
for (year in 2000:2020){
setTkProgressBar(pb2, year, label = paste("Year",year))
}
}
I'd like to have both bars together, not separate...any help appreciated!