Interface to 'REDCap'
Overview
Access data stored in 'REDCap' databases using the Application Programming Interface (API). 'REDCap' (Research Electronic Data CAPture; https://projectredcap.org, Harris, et al. (2009) doi:10.1016/j.jbi.2008.08.010, Harris, et al. (2019) doi:10.1016/j.jbi.2019.103208) is a web application for building and managing online surveys and databases developed at Vanderbilt University. The API allows users to access data and project meta data (such as the data dictionary) from the web programmatically. The 'redcapAPI' package facilitates the process of accessing data with options to prepare an analysis-ready data set consistent with the definitions in a database's data dictionary.
Breaking changes
unlockREDCapupstream dependency on shelter now default to 'SHELTER_' prefix when looking for ENV variable overrides.
Minor improvements and fixes
exportDags,exportFieldNames,exportProjectInformation,exportReportsTyped,importDags,writeDataForImport, andexportRecordsTypednow have acsv_delimiterparameter to control delimiter utilized.importMetaDatabug fix when given duplicate names to exit and warn user properly.redcapUserRoleStructureallows newalerts,api_modules, anddata_quality_resolutionattributes.exportUsersproperly handles the columns random_setup, random_dashboard and random_perform.importUsersandexportUsersweren't handling data_access_group assignment properly.exportUserRolesnow avoids errors when user role access columns are missing from export responses.exportFileRepositoryListingreturns a data.frame with 6 columns (was 4) from REDCap version 16.0.8 and up.redcapConnectionhas better documentation on setting the CSV delimiter and this is respected through most calls except for ones that have been shown to be hard coded to commas by REDCap.
DEPRECATION NOTICES
Show all changes in 2.12.0Hide the rest of the changes in 2.12.0
A future release of version 3.0.0 will introduce several breaking changes!
- The
exportRecordsfunction interface will be replaced. Please switch your processes toexportRecordsTyped - The
importRecordsfunction interface will be replaced to utilizecastForImportto prepare data for import. Validation logs will no longer be printed. - The
redcapFactorclass is being discontinued with all its supporting methods (includingredcapFactorFlip). Please userecastRecordsinstead. - The
recodeCheckfunction is being discontinued. Please userecastRecordsinstead.
From NEWS.md in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: redcapAPI/R/importRecords.R (.Names: 2) '.Names' should be changed to 'names'.
- NOTE8 OK, 5 NOTENow
- NOTE10 OK, 3 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 77 (1 internal)includes a package overview page
- Examples that run
- 2%1 run in a plain check · 58 never run
- Exported functions with examples
- 89%
- Documented parameters
- 98%
- Return-value docs
- 73%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 5
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
6 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/vubiostat/redcapapi on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing redcapAPI adds 18 packages (13 with compiled code, 3.9 MB of source tarballs). Heaviest: jsonlite 1.0 MB, curl 714 KB, sodium 457 KB.
Code & Tests
Datasets
People & History
Show 9 more contributorsHide 9 contributors
Previously maintained by Benjamin Nutter (2.0 to 2.3) and Stephen Lane (1.3).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.12.0Latest
- 2.11.52025-12-09 · diff ↗
- 2.11.42025-10-29 · diff ↗
- 2.11.32025-09-11 · diff ↗ ·
removed 2 exports
exportBundle, redcapProjectInfoadded 5 exports
createSplunkFUN, logEvent, logMessage, logStop, logWarning - 2.11.1
- 2.11.0
- RR 4.5.0 released · 2025-04-11
- 2.10.02024-10-17 · diff ↗
- 2.9.1
- RR 4.4.0 released · 2024-04-24
- 2.9.0
- 2.8.42024-01-31 · diff ↗ ·
added 10 exports
REDCAP_PROJECT_PURPOSE, assembleCodebook, castLogical, changedRecords, createRedcapProject, exportFilesMultiple, exportProjectXml, readPreservedProject, skip_validation, valSkip - 2.8.02023-09-13 · diff ↗ ·
removed 1 export
exportPdfadded 24 exports
castCheckCodeCharacter, castCheckLabelCharacter, castCheckedCharacter, castCodeCharacter, castLabelCharacter, default_cast_character, default_cast_no_factor, deleteDags, deleteUserRoles, deleteUsers, exportSurveyLink, exportSurveyQueueLink, exportSurveyReturnCode, exportUserDagAssignments, exportUserRoleAssignments, exportUserRoles, importDags, importUserDagAssignments, importUserRoleAssignments, importUserRoles, importUsers, renameRecord, reviewInvalidRecords, switchDag - 2.7.4
- 2.7.12023-06-12 · diff ↗ ·
removed 1 export
genericApiCalladded 56 exports
REDCAP_METADATA_FIELDTYPE, REDCAP_METADATA_VALIDATION_TYPE, REDCAP_REPEAT_INSTRUMENT_STRUCTURE, castCheckCode, castCheckForImport, castCheckLabel, castChecked, castCode, castDpCharacter, castDpNumeric, castForImport, castLabel, castRaw, castTimeHHMM, castTimeMMSS, createFileRepositoryFolder, deleteEvents, deleteFileRepository, deleteFromFileRepository, exportBulkRecords, exportFileRepository, exportFileRepositoryListing, exportFromFileRepository, exportRecordsTyped, exportRepeatingInstrumentsEvents, exportReportsTyped, guessCast, guessDate, importEvents, importFileRepository and 26 more
Show 22 earlier eventsHide 22 earlier events
- RR 4.3.0 released · 2023-04-21
- 2.5.02023-03-24 · diff ↗ ·
added 7 exports
REDCAP_SYSTEM_FIELDS, deleteArms, exportLogging, fieldChoiceMapping, makeApiCall, missingSummary, missingSummary_offline - 2.4.02023-03-01 · diff ↗
- 2.3.3
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 2.3
- RR 3.6.0 released · 2019-04-26
- 2.2
- 2.1
- RR 3.5.0 released · 2018-04-23
- 2.02018-01-18 · diff ↗ ·
removed 1 export
allocationTableadded 5 exports
checkbox_suffixes, exportBundle, exportFieldNames, exportPdf, exportProjectInformation - RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 1.32015-03-14 · diff ↗ ·
removed 30 exports
allocationTable.redcapApiConnection, allocationTable.redcapDbConnection, deleteFiles.redcapApiConnection, deleteFiles.redcapDbConnection, exportArms.redcapApiConnection, exportArms.redcapDbConnection, exportEvents.redcapApiConnection, exportEvents.redcapDbConnection, exportFiles.redcapApiConnection, exportFiles.redcapDbConnection, exportInstruments.redcapApiConnection, exportInstruments.redcapDbConnection, exportMappings.redcapApiConnection, exportMappings.redcapDbConnection, exportMetaData.redcapApiConnection, exportMetaData.redcapDbConnection, exportRecords.redcapApiConnection, exportRecords.redcapDbConnection, exportReports.redcapApiConnection, exportReports.redcapDbConnection, exportUsers.redcapApiConnection, exportUsers.redcapDbConnection, exportVersion.redcapApiConnection, exportVersion.redcapDbConnection, importFiles.redcapApiConnection, importFiles.redcapDbConnection, importRecords.redcapApiConnection, importRecords.redcapDbConnection, redcapProjectInfo.redcapApiConnection, redcapProjectInfo.redcapDbConnectionadded 1 export
parseBranchingLogic - 1.22015-01-16 · diff ↗ ·
added 33 exports
allocationTable, allocationTable.redcapApiConnection, allocationTable.redcapDbConnection, allocationTable_offline, deleteFiles.redcapApiConnection, deleteFiles.redcapDbConnection, exportArms.redcapApiConnection, exportArms.redcapDbConnection, exportEvents.redcapApiConnection, exportEvents.redcapDbConnection, exportFiles.redcapApiConnection, exportFiles.redcapDbConnection, exportInstruments.redcapApiConnection, exportInstruments.redcapDbConnection, exportMappings.redcapApiConnection, exportMappings.redcapDbConnection, exportMetaData.redcapApiConnection, exportMetaData.redcapDbConnection, exportRecords.redcapApiConnection, exportRecords.redcapDbConnection, exportRecords_offline, exportReports.redcapApiConnection, exportReports.redcapDbConnection, exportUsers.redcapApiConnection, exportUsers.redcapDbConnection, exportVersion.redcapApiConnection, exportVersion.redcapDbConnection, importFiles.redcapApiConnection, importFiles.redcapDbConnection, importRecords.redcapApiConnection and 3 more - 1.12014-11-25 · diff ↗
- 1.0.12014-10-21 · diff ↗
- 1.02014-09-16
- RR 3.1.0 released · 2014-04-10
Package metadata
- First published
- 2014-09-16
- Total releases
- 25 / 12 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 2.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("redcapAPI")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.