httr (version 1.1.0)

progress: Add a progress bar.

Description

Add a progress bar.

Usage

progress(type = c("down", "up"))

Arguments

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

Examples

Run this code
# 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())

Run the code above in your browser using DataCamp Workspace