## ----eval = FALSE-------------------------------------------------------------
# library(yamaa)
# 
# study <- tempfile("yamaa-")
# dir.create(study)
# writeLines(c("USUBJID,AGE", "01,35", "02,42"), file.path(study, "input.csv"))
# writeLines('yamaa: "1.0"
# type: spec
# domain: DM
# keys: [USUBJID]
# input: {RAW: {path: input.csv, types: {USUBJID: str, AGE: int}}}
# columns:
#   - {name: USUBJID, type: str, derivation: RAW.USUBJID}
#   - {name: AGE, type: int, derivation: RAW.AGE}
# output: {path: dm.csv, columns: [USUBJID, AGE]}
# ', file.path(study, "dm.yaml"))
# 
# spec <- yamaa_spec(file.path(study, "dm.yaml"))
# stopifnot(nrow(spec$check()$issues) == 0L)
# run <- spec$run()
# run$output
# run$save()
# 
# unlink(study, recursive = TRUE)

