Skip to contents

This is the default record-fetching function used by tar_redcap(). It uses redcapAPI::exportRecordsTyped() to pull records for a given form or set of forms. Additional arguments can be passed via ... (e.g., batch_size, drop_fields, labels).

Usage

redcap_fetch_records(con, forms, ...)

Arguments

con

A redcapAPI::redcapConnection object.

forms

A character vector of one or more REDCap form names.

...

Additional arguments passed to redcapAPI::exportRecordsTyped(), such as batch_size, labels, or drop_fields.

Value

A data frame (or tibble if the tibble package is installed) containing the REDCap records.