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

917

Version

2.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Benjamin Nutter

Last Published

August 1st, 2018

Functions in redcapAPI (2.2)

exportEvents

Export the Events for a Project
exportNextRecordName

Generate Next Record Name from a REDCap Database
exportBundle

Perform a bundle of API calls.
genericApiCall

Generic Interface the REDCap API.
exportProjectInformation

Exports the Project Information
importArms

Import Study Arm Names
exportRecords

Export Records from a REDCap Database
exportFieldNames

Export the Export Field Names for a Project
exportFiles

Exports a File attached to a Record
exportInstruments

Exports the REDCap Instruments
exportUsers

Export the Users for a Project
exportMappings

Exports the Event-Form Mappings for a Project
exportReports

Export Reports from a REDCap Database
exportPdf

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

Exports the REDCap Version Number
fieldToVar

Convert a REDCap Data Field to an R Vector
redcap_error

Handle Errors from the REDCap API
syncUnderscoreCodings

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

Change labelling of checkbox variables
massert

Conduct Multiple Assertions
parseBranchingLogic

Parse Branching Logic
validateImport

Validate Data Frames for Import
redcapConnection

Connect to a REDCap Database
redcapAPI

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

Convert REDCap factors between labelled and coded
exportMetaData

Export Meta Data from a REDCap Database
importFiles

Imports a File to REDCap to Attach to a Record
importRecords

Import Records to a REDCap Database
Extraction

Extraction and Assignment for redcapFactors
allocationTable

Allocation Tables for the Randomization Module
deleteFiles

Delete a File attached to a Record
exportArms

Export the Arms for a Project
deprecated_redcapProjectInfo

Deprecated Functions
apiCall

Execute a Call to the REDCap API
checkbox_suffixes

Checkbox Suffixes
cleanseMetaData

Clean Meta Data of UTF Characters
deleteArms

Delete Arms From a Project