powered by
Use a waitress progress bar with httr requests. Simply use httr_progress where you would use httr::progress.
httr_progress
httr_progress(object, type = c("down", "up"), pre = NULL, post = NULL)
The waitress or attendant object.
Type of progress to display: either number of bytes uploaded or downloaded. Passed to httr::progress.
Pre and callback functions to run before the progress starts or once it is done.
# NOT RUN { cap_speed <- httr::config(max_recv_speed_large = 10000) httr::GET( "http://httpbin.org/bytes/102400", httr_progress(w), cap_speed ) # } # NOT RUN { # }
Run the code above in your browser using DataLab