Records via the API

Reading and writing REDCap records, and files within a record.

redcap_read()

Read records from a REDCap project in subsets, and stacks them together before returning a dataset

redcap_read_oneshot()

Read/Export records from a REDCap project

redcap_read_oneshot_eav()

Read/Export records from a REDCap project --still in development

redcap_write()

Write/Import records to a REDCap project

redcap_write_oneshot()

Write/Import records to a REDCap project

redcap_download_file_oneshot()

Download a file from a REDCap project record

redcap_upload_file_oneshot()

Upload a file into to a REDCap project record

Additional API Methods

Accessing other information from the REDCap project or server.

redcap_download_instrument()

Download REDCap Instruments

redcap_next_free_record_name()

Determine free available record ID

redcap_metadata_read()

Export the metadata of a REDCap project

redcap_metadata_write()

Import metadata of a REDCap project

redcap_survey_link_export_oneshot()

Download a file from a REDCap project record

redcap_users_export()

List authorized users

redcap_variables()

Enumerate the exported variables

redcap_version()

Determine version of REDCap instance

Internals

Functions and classes used by the methods above.

REDCapR-package

R utilities for interacting with a REDCap data system http://www.project-redcap.org/

redcap_project

A Reference Class to make later calls to REDCap more convenient

kernel_api()

REDCapR internal function for calling the REDCap API

Security

Responsibly store and retrieve a user’s project-specific token.

retrieve_credential_local() retrieve_credential_mssql()

Read a token and other credentials from a (non-REDCap) database or file

Utilities

Functions to help the methods above.

collapse_vector()

Collapse a vector of values into a single string when necessary

constant()

Collection of REDCap-specific constants

create_batch_glossary()

Creates a dataset that help batching long-running read and writes

regex_named_captures() checkbox_choices()

Manipulate and interpret the metadata of a REDCap project

redcap_column_sanitize()

Sanitize to adhere to REDCap character encoding requirements

replace_nas_with_explicit()

Create explicit factor level for missing values

sanitize_token()

Validate and sanitize the user's REDCap token

validate_for_write() validate_no_logical() validate_field_names() validate_field_names_collapsed()

Inspect a dataset to anticipate problems before writing to a REDCap project