### Access Function Help Page Source: https://github.com/nutterb/redcapapi/blob/main/README.md Use the `?` operator to access the help documentation for specific functions within the redcapAPI package. This is a good starting point for understanding function usage. ```r ?exportRecordsTyped ``` ```r ?fieldValidationAndCasting ``` -------------------------------- ### Get REDCap API Package Version Source: https://github.com/nutterb/redcapapi/blob/main/README.md Retrieve the installed version of the redcapAPI package. This information is often required when reporting issues. ```r packageVersion('redcapAPI') ``` -------------------------------- ### Get Project Missing Data Codes Source: https://github.com/nutterb/redcapapi/blob/main/README.md Retrieve the project's configuration for missing data codes. This is relevant for understanding how missing values are represented. ```r rcon$projectInformation()$missing_data_codes ``` -------------------------------- ### Configure keyring for REDCap API Access Source: https://github.com/nutterb/redcapapi/blob/main/README.md Set the keyring backend to file-based storage and unlock your REDCap connection using API keys. Ensure your REDCap URL and project name are correctly specified. ```R options(keyring_backend=keyring::backend_file) unlockREDCap(c(rcon = ''), keyring = 'API_KEYs', envir = globalenv(), url = 'https:///api/') exportBulkRecords(list(db = rcon), forms = list(db = unique(rcon$metadata()$form_name)), envir = globalenv()) ``` -------------------------------- ### Load redcapAPI Package Source: https://github.com/nutterb/redcapapi/blob/main/README.md Loads the redcapAPI package into the R session. This is a prerequisite for using any of its functions. ```r library(redcapAPI) ``` -------------------------------- ### Export Records with Typed Casting Source: https://github.com/nutterb/redcapapi/blob/main/README.md Use this function to export records from REDCap. It attempts to cast data into appropriate R types. Check for warnings related to data validation failures. ```r Rec <- exportRecordsTyped(rcon) ``` -------------------------------- ### Export Records with Empty Row Filtering Disabled Source: https://github.com/nutterb/redcapapi/blob/main/README.md When exporting records, try setting `filter_empty_rows=FALSE` to see if this resolves issues related to empty rows in the export. ```r filter_empty_rows=FALSE ``` -------------------------------- ### Export Raw Records Skipping Validation Source: https://github.com/nutterb/redcapapi/blob/main/README.md Perform a raw data export without any validation or casting by the library. This is useful for diagnosing issues with the library's processing. ```r exportRecordsTyped(rcon, validation = skip_validation, cast = raw_cast) ``` -------------------------------- ### Review Invalid Records Source: https://github.com/nutterb/redcapapi/blob/main/README.md If `exportRecordsTyped` returns warnings about invalid data, use this function to inspect the problematic records. ```r reviewInvalidRecords(Rec) ``` -------------------------------- ### Check for Secondary Unique Field Source: https://github.com/nutterb/redcapapi/blob/main/README.md Check if a secondary unique field is defined in the REDCap project. The absence of this field can cause issues with data exports, especially in older REDCap versions. ```r rcon$projectInformation()$secondary_unique_field ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.