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 . 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-11-28 22:12:12 UTC; root Author: Jaime Yan [aut, cre] Maintainer: Jaime Yan Repository: https://cran.r-universe.dev Date/Publication: 2026-11-28 21:05:07 UTC RemoteUrl: https://github.com/cran/admiralagent RemoteRef: HEAD RemoteSha: a99524834c1cc25e83e138439dff43877f8babfd