Package: admiralagent Title: Spec-Driven ADaM Code Generation with LLM-Translated Layers Version: 0.1.0.9000 Authors@R: person("Jaime", "Yan", role = c("aut", "cre"), email = "yanmingyunmt@gmail.com") Description: Translates P21-style ADaM specifications into executable 'admiral' code with validation comments. An LLM (optional, via 'ellmer') maps each spec variable's free-text derivation onto a closed vocabulary of derivation layers (structured JSON 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. 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.0 Repository: https://yanmingyu92.r-universe.dev Date/Publication: 2026-10-13 18:03:57 UTC RemoteUrl: https://github.com/yanmingyu92/admiralagent RemoteRef: HEAD RemoteSha: 9e098d396053605068653b138ed0ad196f3f7770 NeedsCompilation: no Packaged: 2026-10-13 19:48:18 UTC; root Author: Jaime Yan [aut, cre] Maintainer: Jaime Yan