Learn R Programming

⚠️There's a newer version (2.10.0) of this package.Take me there.

redcapAPI

The package redcapAPI is an R interface to REDCap (http://www.project-redcap.org/), and is an actively developed fork of redcap, originally created by Jeffrey Horner.

Please read the documentation on your institutions REDCap installation.

Issues may be reported at https://github.com/nutterb/redcapAPI/issues

Please consider contributing tips and clarifications to the package wiki at https://github.com/nutterb/redcapAPI/wiki

This package was developed under REDCap Version 5.8.2. My institution is usually a little behind on updating REDCap and so some features of the API may not always be available.

The redcapDbConnection methods are underdeveloped as I don't personally have access to the REDCap database (and so am unable to test features). If you have that kind of access, feel free to develop the redcapDbConnection methods.

Supplemental Gists

Copy Link

Version

Install

install.packages('redcapAPI')

Monthly Downloads

1,110

Version

2.3

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Benjamin Nutter

Last Published

February 17th, 2020

Functions in redcapAPI (2.3)

exportArms

Export the Arms for a Project
redcapConnection

Connect to a REDCap Database
redcapFactorFlip

Convert REDCap factors between labelled and coded
Extraction

Extraction and Assignment for redcapFactors
exportSurveyParticipants

Exports details of participants for a given survey
exportUsers

Export the Users for a Project
exportBundle

Perform a bundle of API calls.
checkbox_suffixes

Checkbox Suffixes
allocationTable

Allocation Tables for the Randomization Module
exportMappings

Exports the Event-Form Mappings for a Project
exportInstruments

Exports the REDCap Instruments
exportVersion

Exports the REDCap Version Number
exportFiles

Exports a File attached to a Record
exportFieldNames

Export the Export Field Names for a Project
importArms

Import Study Arm Names
genericApiCall

Generic Interface the REDCap API.
fieldToVar

Convert a REDCap Data Field to an R Vector
recodeCheck

Change labelling of checkbox variables
cleanseMetaData

Clean Meta Data of UTF Characters
exportPdf

Export PDF file of Data Collection Instruments (either as blank or with data)
exportRecords

Export Records from a REDCap Database
exportProjectInformation

Exports the Project Information
exportReports

Export Reports from a REDCap Database
deleteArms

Delete Arms From a Project
massert

Conduct Multiple Assertions
exportEvents

Export the Events for a Project
redcapAPI

Access data, meta data, and files from REDCap using the API
importFiles

Imports a File to REDCap to Attach to a Record
parseBranchingLogic

Parse Branching Logic
validateImport

Validate Data Frames for Import
importRecords

Import Records to a REDCap Database
redcap_error

Handle Errors from the REDCap API
syncUnderscoreCodings

Sychronize coding of checkbox variables between meta data and records field names.
deleteFiles

Delete a File attached to a Record
deleteRecords

Delete Records From a Project
apiCall

Execute a Call to the REDCap API
deprecated_redcapProjectInfo

Deprecated Functions
exportMetaData

Export Meta Data from a REDCap Database
exportNextRecordName

Generate Next Record Name from a REDCap Database