syncR is the integrator and coordinator of the Circadia Lab R ecosystem.
syncR provides a single, unified entry point for bringing together data across the Circadia Lab package ecosystem. It pulls sociodemographic and questionnaire data from tallieR, sleep diary data from slumbR, and actigraphy-derived circadian metrics from zeitR into one tidy, participant-indexed database.
syncR::sync() β pulling everything into alignment, just like the SCN does.
Just as the suprachiasmatic nucleus (SCN) coordinates biological rhythms across the body, syncR coordinates data streams across the suite β making cross-domain analysis (actigraphy vs. subjective sleep quality, circadian phase vs. demographics) effortless.
- π One function, three sources β
sync()joins tallieR, slumbR, and zeitR outputs in a single call - π§© Flexible joining β left, inner, or full join strategies to suit your study design
- πͺͺ Participant-indexed β all outputs keyed on a shared participant ID column
- π§Ή Tidy output β returns a clean tibble ready for modelling or export
- π§ Source-agnostic β supply any combination of sources; omitted sources are silently ignored
syncR/
βββ R/
β βββ syncR-package.R # Package-level documentation
β βββ sync.R # Core sync() function
βββ tests/
β βββ testthat/
β βββ test-sync.R # Unit tests
βββ vignettes/
β βββ syncR.Rmd # Getting started vignette
βββ .github/
β βββ workflows/
β βββ R-CMD-check.yaml
β βββ pkgdown.yaml
βββ _pkgdown.yml
βββ DESCRIPTION
- R β₯ 4.1
dplyr,rlang,cli
# Install from GitHub
remotes::install_github("circadia-bio/syncR")library(syncR)
db <- sync(
tallie = tallieR::export(), # sociodemographics + questionnaires
slumb = slumbR::export(), # sleep diaries
zeit = zeitR::export() # actigraphy + circadian metrics
)# Inner join β only participants present in all sources
db <- sync(tallie = ..., slumb = ..., zeit = ..., join = "inner")
# Full join β all participants, NAs where data is absent
db <- sync(tallie = ..., slumb = ..., zeit = ..., join = "full")| Package | Role |
|---|---|
dplyr |
Data frame joining |
rlang |
Error handling and messaging |
cli |
Formatted console output |
| Role | Name |
|---|---|
| Author & maintainer | Lucas FranΓ§a |
| Author | Mario Leocadio-Miguel |
- π slumbR β sleep diary data collection and processing
- β±οΈ zeitR β wrist actigraphy analysis and circadian rhythm metrics
- π tallieR β sociodemographic and questionnaire data management
- π¬ circadia-bio β the Circadia Lab GitHub organisation
Released under the MIT License.
Copyright Β© Lucas FranΓ§a & Mario Leocadio-Miguel, 2025