I have a Rmarkdown document with a number of chunks. Each of them is doing a simulation inside a loop. A simulation can take anywhere from a few minutes to 20 minutes or so. I would like to keep track of when a loop is finished. However, the usual output in the Render panel does not change while a chunk is running. Currently I write some information to a text file when a loop run has finished, but that seems a bit of a hack. Is there a more elegant way to do this?

