inst/test-data/projects/README.md

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".
    2. 'unittestphifree-dag1': First name = "Unit Test"; Last name "PHI Free DAG1"
  2. Copy all the projects to the new server (I find it easier to walk down the credential file as I add them.)
  3. Assign the user (created above) to the "api" user role for each project.
  4. Add a token for each project
  5. Create a credential file for the new project (examples 1 and 2)
    1. Update redcap_uri
    2. Update the corresponding project_id
    3. Update the corresponding token
    4. Leave username and comment untouched
  6. Add new entries to project-redirection.yml
  7. Install plugins
    1. Copy from source
    2. Change the project_id value at the bottom of each php file.
    3. Move to destination directory
    4. Update plugin-redirection.yml


Try the REDCapR package in your browser

Any scripts or data that you put into this service are public.

REDCapR documentation built on April 3, 2025, 6:20 p.m.