This function helps add progress-reporting to any function - given function f() and progressr p(), it will return a new function that calls f() and then (on-exiting) will call p() after every iteration.
Arguments
- f
a function to add progressr functionality to.
- p
a progressr function as created by
progressr::progressor()
