Reads a human-readable YAML analysis specification (aligned to CDISC Analysis Results Standard concepts: analyses, methods, operations, displays) and returns a validated ardflow_spec object.

read_spec(path)

Arguments

path

Path to a YAML specification file.

Value

An object of class ardflow_spec: a list with elements meta and analyses.

Examples

spec_path <- system.file("specs", "demographics.yaml", package = "ardflow")
if (nzchar(spec_path)) read_spec(spec_path)