Minimal proof-of-concept R package for preparing SAS macro validation tests from functional requirements documents (FRDs).
The initial package can:
- Read text-based FRDs.
- Import SAS macro source and extract macro names and parameters.
- Build a structured prompt for an LLM.
- Accept an optional generator function for an
ellmerintegration.
frd <- read_frd("requirements.txt")
macro <- import_sas_macro("derive_flag.sas")
result <- generate_sas_tests(frd, macro)
cat(result$prompt)
# Set OPENROUTER_API_KEY in .Renviron before calling the live model.
live_result <- generate_sas_tests_openrouter(frd, macro)
live_result$parsedPDF/DOCX parsing and generated SAS execution are intentionally outside this
first POC boundary. The OpenRouter API key is read by ellmer from the
OPENROUTER_API_KEY environment variable and is never stored by the package.