Description Usage Arguments Examples
Use a waitress progress bar with httr requests.
Simply use httr_progress
where you would use
httr::progress.
1 | httr_progress(object, type = c("down", "up"), pre = NULL, post = NULL)
|
object |
The waitress or attendant object. |
type |
Type of progress to display: either number of bytes uploaded or downloaded. Passed to httr::progress. |
pre, post |
Pre and callback functions to run before the progress starts or once it is done. |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
cap_speed <- httr::config(max_recv_speed_large = 10000)
httr::GET(
"http://httpbin.org/bytes/102400",
httr_progress(w),
cap_speed
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.