r-lib / progress

Progress bar in your R terminal
http://r-lib.github.io/progress/
Other
468 stars 39 forks source link

Callback does not pass progress bar as argument #46

Closed richfitz closed 7 years ago

richfitz commented 7 years ago

In the docs you say:

     callback Callback function to call when the progress bar finishes.
          The progress bar object itself is passed to it as the single
          parameter.

and in the tests you do use a function of the form function(self) ... but when callback is called by progress bar it's called as self$callback() not self$callback(self)