powered by
When uploading or downloading a large file, it's often useful to provide a progress bar so that you know how long you have to wait.
req_progress(req, type = c("down", "up"))
A request.
Type of progress to display: either number of bytes uploaded or downloaded.
req <- request("https://r4ds.s3.us-west-2.amazonaws.com/seattle-library-checkouts.csv") |> req_progress() if (FALSE) { path <- tempfile() req |> req_perform(path = path) }
Run the code above in your browser using DataLab