Crandore Hub

REDCapR

Interaction Between R and REDCap

Encapsulates functions to streamline calls from R to the REDCap API. REDCap (Research Electronic Data CAPture) is a web application for building and managing online surveys and databases developed at Vanderbilt University. The Application Programming Interface (API) offers an avenue to access and modify data programmatically, improving the capacity for literate and reproducible programming.

README

Test Projects
================

Steps to recreate on a fresh server

1.  Create two accounts for testing:
    Table-based accounts are probably easiest.
    Tests are case-sensitive.
    1. 'unittestphifree': First name = "Unit Test"; Last name "Phi Free".
    1. 'unittestphifree-dag1': First name = "Unit Test"; Last name "PHI Free DAG1"
1.  Copy all the projects to the new server
    (I find it easier to walk down the credential file as I add them.)
1.  Assign the user (created above) to the "api" user role for each project.
1.  Add a token for each project
1.  Create a credential file for the new project
    (examples [1](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/example.credentials) and
    [2](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/dev-2.credentials))
    1.  Update `redcap_uri`
    1.  Update the corresponding `project_id`
    1.  Update the corresponding `token`
    1.  Leave `username` and `comment` untouched
1.  Add new entries to [project-redirection.yml](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/project-redirection.yml)
1.  Install plugins
    1.  Copy from [source](https://github.com/OuhscBbmc/REDCapR/tree/main/utility/plugins)
    1.  Change the `project_id` value at the bottom of each php file.
    1.  Move to destination directory
    1.  Update [plugin-redirection.yml](https://github.com/OuhscBbmc/REDCapR/blob/main/inst/misc/plugin-redirection.yml)

Versions across snapshots

VersionRepositoryFileSize
1.6.0 rolling linux/jammy R-4.5 REDCapR_1.6.0.tar.gz 1.2 MiB
1.6.0 rolling linux/noble R-4.5 REDCapR_1.6.0.tar.gz 1.2 MiB
1.6.0 rolling source/ R- REDCapR_1.6.0.tar.gz 1.0 MiB
1.6.0 latest linux/jammy R-4.5 REDCapR_1.6.0.tar.gz 1.2 MiB
1.6.0 latest linux/noble R-4.5 REDCapR_1.6.0.tar.gz 1.2 MiB
1.6.0 latest source/ R- REDCapR_1.6.0.tar.gz 1.0 MiB
1.6.0 2026-04-26 source/ R- REDCapR_1.6.0.tar.gz 1.0 MiB
1.6.0 2026-04-23 source/ R- REDCapR_1.6.0.tar.gz 1.0 MiB
1.6.0 2026-04-09 windows/windows R-4.5 REDCapR_1.6.0.zip 1.4 MiB
1.4.0 2025-04-20 source/ R- REDCapR_1.4.0.tar.gz 1.0 MiB

Dependencies (latest)

Imports

Suggests