syncR is the integrator and coordinator of the Circadia Lab R ecosystem.
β οΈ syncR is in early development and has not been formally tested. The API may change without notice and the package has not undergone peer review. Use with caution and verify outputs independently before using in any research context.
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.
sync() joins tallieR, slumbR, and zeitR outputs in a single callsyncR/
βββ 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
dplyr, rlang, cli
# Install from GitHub
# remotes::install_github("circadia-bio/syncR")
install.packages("syncR", repos = c('https://circadia-bio.r-universe.dev', 'https://cloud.r-project.org'))
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 |
Released under the MIT License.
Copyright Β© Lucas FranΓ§a & Mario Leocadio-Miguel, 2025