Skip to contents

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

Usage

fetch_vd_counts(
  ids,
  page_size = 50,
  cache_location = NULL,
  refresh_cache = FALSE,
  noprogress = FALSE,
  basereq = vb_basereq()
)

Arguments

ids

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

page_size

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

cache_location

path to cache location (defaults to a temporary user directory, or one set by set_default_ohvbd_cache()).

refresh_cache

force a refresh of the relevant cached data.

noprogress

disable non-essential messaging (progress bars etc.).

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) { # interactive()
fetch_vd_counts(54)

fetch_vd_counts(c(423,424,425))
}