CARWatch examples

This catalogue lists the executable R Markdown examples in the carwatch-r repository. Each example creates its inputs below tempdir() unless it explicitly asks for an interactive action.

To run an example locally, clone or download the repository, open examples/examples.Rproj in RStudio, and open the linked .Rmd file. Use Run All to work through it step by step or Knit to create an HTML report. Install pkgload, rmarkdown, shiny, and DT as described in the tutorial guide.

End-to-end walkthroughs

If you want to… Start here
Import app logs, review issues, submit decisions, and save Study Results 01-log-processing.Rmd
Merge cortisol data, assess compliance, and compute response features 02-saliva-analysis.Rmd
Create sampling timelines, compliance, deviation, and saliva-response plots 03-plotting.Rmd
Generate synthetic data and try the Shiny tools 04-synthetic-study-interactive-log-processing.Rmd

Focused research workflows

  1. Load participant folders and check imported files
  2. Resolve conversion issues through a CSV report
  3. Resolve conversion issues interactively
  4. Assess and filter sampling compliance
  5. Inspect individual sampling timing
  6. Merge positional saliva measurements
  7. Compute cortisol response features

Protocol variants and example data

The examples are rendered and smoke-tested in continuous integration. The developer workflow is documented in Development.