safe_exportRecords | R Documentation |
A safe wrapper around redcapAPI::exportRecords that does not fail when records are requested from an empty REDCap project. In the event of an empty project, field names are used to create an empty data structure.
safe_exportRecords(rc_con, rc_field_names)
rc_con |
A REDCap API Connection Object |
rc_field_names |
The field names for a REDCap instrument |
A data frame containing existing REDCap records, or an empty data frame with the structure of what the records would look like.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.