## Not run:
# options(showprogress=TRUE) # same as ='tk'
# pb <- setPb(1000)
# for(i in 1:1000) {
# pb(i) # pb(i, every=10) to only show for multiples of 10
# # your calculations
# }
# # Force rms functions to do simulations to not report progress
# options(showprogress='none')
# # For functions that do simulations to use the console instead of pop-up
# # Even with tcltk is installed
# options(showprogress='console')
# pb <- setPb(1000, label='Random Sampling')
# ## End(Not run)
Run the code above in your browser using DataLab