Skip to contents

Downloads CDISC CORE conformance rules from the official CDISC Library API (api.library.cdisc.org) and caches them locally as YAML files. No API key is required for rules. Subsequent calls use the cache unless force = TRUE.

For ADaM and FDA Business Rules not yet in CORE, herald provides built-in rules via adam_rules() and fda_rules().

Usage

fetch_core_rules(rule_set = "core", force = FALSE)

Arguments

rule_set

Character string: "core" (all CDISC rules), "fda" (FDA business rules + CORE SDTM/SEND), "pmda" (PMDA rules), "adam" (ADaM rules), or "all" (everything).

force

Logical. Re-download even if cached? Default FALSE.

Value

Path to the local rules directory (invisibly), or NULL for built-in rule sets (pmda, adam).

Examples

if (FALSE) { # \dontrun{
fetch_core_rules("core")
fetch_core_rules("core", force = TRUE)
} # }