Welcome to the DETECT-RPC R33 Phase Dashboard project! This documentation guides new users through installation, setup, and development.
- Overview of the Study
- Prerequisites
- Installation
- Project Setup
- Building the Dashboard
- Development Workflow
- Contributing
The primary objective of the study is to evaluate whether the use of the DETECT-RPC screening tool increases the average reporting of elder mistreatment (EM) by HBPC clinicians relative to a baseline period where they did not use the DETECT-RPC screening tool.
The R33 phase is divided into two parts:
- Universal EM Screening (RCT)
- Caregiver Dyad Follow-Up Interviews
In this part of the study (year 3-5), we will randomize approximately 43 home-based primary care clinicians to either use the adapted DETECT screening tool at every qualified home based primary care patient encounter (experimental condition) or continue to provide standard care (control condition). Providers randomized to the experimental condition will use the adapted DETECT tool at every qualified patient encounter. A waiver of informed consent is approved, as it requires no direct input from the patient; rather, it is a purely observation-based tool, which is completed by the clinician. Over the three years of follow-up, we expect our partner home-based primary care programs to treat approximately 6,150 older adults. Through the randomization process, we expect half of that number to be screened by a clinician using the adapted DETECT tool.
In this part, we will recruit a purposive sample of 180 caregiving dyads consisting of family caregivers and their care recipients, half of which will be living with Alzheimer’s Disease or Related Dementias (ADRD). The study is recruiting dyads because we are interested in caregiver behaviors and their relationship to care recipient outcomes. The caregiving dyads will be recruited from among patients who are actively enrolled in one of our site-specific home-based primary care programs.
This repository contains the code used to create dashboards for tracking the progress of the study.
- Operating System: Windows, macOS, or Linux
- Memory: Minimum 8 GB RAM
- Storage: At least 10 GB free space
- R (version 4.5)
- Positron OR RStudio IDE (latest version)
- Quarto (version 1.7.*)
- Git (latest version)
Follow these steps to install necessary software:
- Download and install R from CRAN
- Download and install the latest version of RStudio or Positron from Posit
- Download and install Quarto from Quarto
- Download and install the latest version from Git
Verify installations by opening your terminal and checking versions:
R --version
quarto --version
git --versiongit clone https://github.com/brad-cannell/r33_dashboards.git
cd r33_dashboardsNote
Don't clone to a cloud storage folder (Box, Dropbox, Google Drive, OneDrive, etc.). File-locking and sync conflicts can corrupt the renv library.
Instructions for saving the required data locally
- Open r33_dashboards in the IDE.
In the R console:
install.packages('renv')
renv::restore()This project uses renv to manage project package dependencies. Click the link for more details.
Note
renv::restore() may take several minutes and requires an active internet connection.
Instructions for requesting API keys
API Keys needed:
- DETECT-RPC Tool Data
- REDCap: https://redcap.uth.tmc.edu/index.php
- Project: DETECT Tool
- DETECT-RPC Baseline Reporting Data
- REDCap: https://redcap.uth.tmc.edu/index.php
- Project: DETECT-RPC APS Reporting
- DETECT-RPC Clicks
- Go UTHealth: https://apps.uth.edu/go/pages/welcome.xhtml
- Title: Elder Abuse Definitions
keyring::key_set("DETECT_TOOL_REDCAP_API_TOKEN")
keyring::key_set("DETECT_APS_REDCAP_API_TOKEN")
keyring::key_set("DETECT_TOOL_LINKS_TOKEN")Click for additional information about the keyring package
This section assumes you have already successfully completed all of the installation and project setup steps above.
In the IDE, navigate to the project root and run:
quarto publish gh-pages- Type
Yeswhen asked "? Update site at https://brad-cannell.github.io/r33_dashboards/?" - You may need to enter your computer's password one or more times giving
keyringpermission to access the API keys.
- A rendered preview of the dashboard should automatically open in the browser.
git add .
git commit -m "YYYY-MM-DD Dashboard Update"
git pushUse feature branches for development:
git checkout -b feature/your-feature-nameMake commits descriptive and focused:
git add .
git commit -m "Describe changes clearly"Push your feature branch:
git push origin feature/your-feature-name- Fork the repository.
- Create your feature branch.
- Submit a Pull Request (PR) to the main repository.
- Clearly document your changes in the PR description.