package/function to stop time of r chunk execution in rmarkdown document

I have a pretty long rmarkdown document which gets converted to a blogdown post. Some of the code chunks take considerable time to run and I would like to accelerate these chunks. But before going through each individual chunk, I was wondering whether there is a package, add-in etc. which provides me with the time which each r-chunk needs to run. Something like benchmark but for all chunks and per chunk.

Hope that makes sense.
Many thanks.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.