tests/testthat/_snaps/spec_construct.md

conflicting study-name fields abort at construction

Code
  artoo_spec(data.frame(dataset = "DM"), data.frame(dataset = "DM", variable = "USUBJID",
    data_type = "string"), study = data.frame(studyid = "CDISC01", StudyName = "OTHER",
    stringsAsFactors = FALSE, check.names = FALSE))
Condition
  Error:
  ! Study fields that name the study_name disagree.
  x "studyid" and "StudyName" carry 2 distinct values: "CDISC01" and "OTHER".
  i Reconcile them to one value, or drop the stale field.

mixing standards aborts at construction

Code
  artoo_spec(data.frame(dataset = c("ADSL", "DM"), standard = c("ADaMIG 1.1",
    "SDTMIG 3.2")), data.frame(dataset = c("ADSL", "DM"), variable = c("AGE",
    "USUBJID"), data_type = c("integer", "string")))
Condition
  Error:
  ! A <artoo_spec> carries exactly one CDISC standard.
  x Found 2 distinct standards: "ADaMIG 1.1" and "SDTMIG 3.2".
  i Split the source by standard, or scope the read to one standard's datasets with `read_spec(path, datasets = ...)`.


Try the artoo package in your browser

Any scripts or data that you put into this service are public.

artoo documentation built on July 23, 2026, 1:08 a.m.