Skip to contents

Loads the cohort manifest and returns CohortManifest$getManifestHash(), a SHA256 digest over every registered (active/stale) cohort's definition. Used by shouldRerunTask() to detect cohort changes that require a task rerun.

Usage

.getCohortManifestHash(projectPath = here::here())

Arguments

projectPath

Character. A path inside the study repository. Defaults to the current project (here::here()).

Value

Character. SHA256 hex digest, or NA_character_ if the manifest cannot be read.

Details

A thin wrapper around the manifest method, which is the single source of truth for what "the cohort definitions changed" means. The load is read-only (autoSync = FALSE), so this has no side effects. Any failure to load or hash the manifest returns NA_character_; shouldRerunTask() treats that as "cannot prove unchanged" and forces the rerun.