progress: Add a progress bar.

Description Usage Arguments Examples

Description

Add a progress bar.

Usage

1
progress(type = c("down", "up"), con = stdout())

Arguments

type

Type of progress to display: either number of bytes uploaded or downloaded.

con

Connection to send output too. Usually stdout() or stderr.

Examples

1
2
3
4
# If file size is known, you get a progress bar:
x <- GET("http://courses.had.co.nz/12-oscon/slides.zip", progress())
# Otherwise you get the number of bytes downloaded:
x <- GET("http://httpbin.org/drip?numbytes=4000&duration=3", progress())


Search within the httr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.