Learn R Programming

⚠️There's a newer version (2.9.1) 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,012

Version

2.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 18th, 2018

Functions in redcapAPI (2.0)

deleteFiles

Delete a File attached to a Record
deprecated_redcapProjectInfo

Deprecated Functions
exportArms

Export the Arms for a Project
exportBundle

Perform a bundle of API calls.
exportFiles

Exports a File attached to a Record
exportInstruments

Exports the REDCap Instruments
allocationTable

Allocation Tables for the Randomization Module
checkbox_suffixes

Checkbox Suffixes
exportEvents

Export the Events for a Project
exportFieldNames

Export the Export Field Names for a Project
exportUsers

Export the Users for a Project
exportVersion

Exports the REDCap Version Number
exportPdf

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

Exports the Project Information
redcapFactorFlip

Convert REDCap factors between labelled and coded
redcap_error

Handle Errors from the REDCap API
redcapAPI

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

Connect to a REDCap Database
exportMappings

Exports the Event-Form Mappings for a Project
exportMetaData

Export Meta Data from a REDCap Database
syncUnderscoreCodings

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

Validate Data Frames for Import
exportRecords

Export Records from a REDCap Database
exportReports

Export Reports from a REDCap Database
importRecords

Import Records to a REDCap Database
massert

Conduct Multiple Assertions
fieldToVar

Convert a REDCap Data Field to an R Vector
importFiles

Imports a File to REDCap to Attach to a Record
parseBranchingLogic

Parse Branching Logic
recodeCheck

Change labelling of checkbox variables