Skip to contents

Retrieve VecDyn dataset/s specified by their dataset ID.

Usage

fetch_vd(ids, rate = 5, connections = 1, check_src = TRUE, basereq = NA)

Arguments

ids

a numeric ID or numeric vector of ids (preferably in an ohvbd.ids object) indicating the particular dataset/s to download.

rate

maximum number of calls to the API per second.

connections

number of simultaneous connections to the server at once. Maximum 8. Do not enable unless you really need to as this hits the server significantly harder than usual.

check_src

toggle pre-checking of source data prior to get.

basereq

an httr2 request object, as generated by vb_basereq(). If NA, uses the default request.

Value

A list of httr2 response objects, as an ohvbd.responses object.

Author

Francis Windram

Examples

if (FALSE) { # \dontrun{
fetch_vd(54)

fetch_vd(c(423,424,425), rate=5)
} # }