req_progress | R Documentation |
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"))
req |
A request. |
type |
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()
## Not run:
path <- tempfile()
req |> req_perform(path = path)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.