r-lib / httr2

Make HTTP requests and process their responses. A modern reimagining of httr.
https://httr2.r-lib.org
Other
238 stars 59 forks source link

Small Issue in `req_perform_sequential()`'s documentation #543

Closed jimbrig closed 1 month ago

jimbrig commented 1 month ago

req_perform_sequential() documentation

In [req_perform_sequential()](), the paths argument says:

"An optional list of paths, if you want to download the request bodies to disks. If supplied, must be the same length as reqs."

However, this is slightly misleading as if you use an actual list() of paths you get:

> resps <- httr2::req_perform_sequential(reqs, paths)
Error in `check_paths()`:
! `paths` must be a character vector, not a list.

Therefore I'd recommend changing list to vector in the roxygen.