Skip to contents

Retrieve length of VecDyn dataset/s specified by their dataset ID.

Usage

fetch_vd_counts(
  ids,
  rate = 5,
  connections = 1,
  page_size = 50,
  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.

page_size

the page size returned by VecDyn (default is 50).

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 dataframe describing the number of rows and number of pages for the set of ids

Author

Francis Windram

Examples

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

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