Skip to contents

Persists a validated GovernedNormativeReference to the registry at <root>/<id>/<version>.rds, writing a sibling governance manifest.json. The artifact must pass both object validity and validateNormativeManifest.

Usage

registerNormative(ref, root = NULL, overwrite = FALSE)

Arguments

ref

A GovernedNormativeReference.

root

Registry root directory; defaults to the option PhysioClinical.normative_root or the package's user data dir.

overwrite

Overwrite an already-registered version (default FALSE).

Value

The written .rds path, invisibly.

Examples

ref <- GovernedNormativeReference("gs", "gait", "gait_speed",
  provenance = list(source = "x"), consent = list(status = "public"),
  license = list(spdx = "CC0-1.0"),
  governance = list(custodian = "lab", access_level = "open"))
registerNormative(ref, root = tempfile("norm"))