Package: admiralagent
Title: Spec-Driven ADaM Code Generation with LLM-Translated Layers
Version: 0.1.1
Date: 2026-10-21
Authors@R: person("Jaime", "Yan", role = c("aut", "cre"), email = "yanmingyunmt@gmail.com")
Description: Translates Pinnacle 21 (P21)-style ADaM (Analysis Data
    Model) specifications into executable 'admiral' code with validation
    comments. An LLM (large language model, optional, via 'ellmer') maps
    each spec variable's free-text derivation onto a closed vocabulary of
    derivation layers (a structured JSON intermediate representation
    (IR)); a deterministic compiler renders the IR into
    'admiral'/'metatools' code with 'CHECK' validation comments and
    writes provenance sidecars. Ships with a zero-dependency rule-based
    classifier as baseline and fallback; the LLM never writes R code
    directly and all model output is validated against the closed
    vocabulary before use. The specification structure follows the CDISC
    (Clinical Data Interchange Standards Consortium) Analysis Data Model
    standard <https://www.cdisc.org/standards/foundational/adam>.
License: MIT + file LICENSE
Encoding: UTF-8
URL: https://github.com/yanmingyu92/admiralagent
BugReports: https://github.com/yanmingyu92/admiralagent/issues
Depends: R (>= 4.1)
Imports: glue, jsonlite, digest, stats, utils
Suggests: xml2, ellmer, metacore, admiral, metatools, readxl, testthat
        (>= 3.0.0), rlang, tibble, knitr, rmarkdown, dplyr, haven,
        pharmaversesdtm, pharmaverseadam
VignetteBuilder: knitr
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.1
NeedsCompilation: no
Packaged: 2026-10-21 20:27:32 UTC; JaimeYan
Author: Jaime Yan [aut, cre]
Maintainer: Jaime Yan <yanmingyunmt@gmail.com>
Repository: CRAN
Date/Publication: 2026-11-28 16:00:08 UTC
