Welcome to the DETECT RPC APS BL Dashboard project! This documentation guides new users through installation, setup, and development.
- Introduction
- Prerequisites
- Installation
- Project Setup
- Building the Dashboard
- Development Workflow
- Contributing
The DETECT RPC APS BL Dashboard project provides a Quarto dashboard to efficiently monitor new and existing submissions for the APS Baseline data.
- 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/DETECT-RPC-APS-BL-Dashboard.git
cd DETECT-RPC-APS-BL-DashboardNote
Don't clone to a cloud storage folder (Box, Dropbox, Google Drive, OneDrive, etc.). File-locking and sync conflicts can corrupt the renv library.
- Open DETECT-RPC-APS-BL-Dashboard 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 Baseline Reporting Data
- REDCap: https://redcap.uth.tmc.edu/index.php
- Project: DETECT-RPC APS Reporting
keyring::key_set("aps_reports_redcap_api")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:
rscript data_operations.R
quarto render aps-dashboard.qmd- Open the generated HTML file in your browser. It is the file named
index.htmlat the project root.
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.