tests/testthat/_snaps/apply.md

apply_spec validates x and dataset

Code
  apply_spec(list(1), spec, "ADSL")
Condition
  Error:
  ! `x` must be a data frame.
  x You supplied a list.
Code
  apply_spec(cdisc_adsl, spec, "NOPE")
Condition
  Error:
  ! `dataset` must be one of the spec's datasets.
  x "NOPE" is not in the spec.
  i Available: "ADSL".

truncating integer coercion always aborts (lossless or abort)

Code
  apply_spec(raw, spec, "DM", conformance = "off")
Condition
  Error:
  ! Coercion to the spec dataTypes would lose data.
  x Integer coercion would truncate fractional values in: AGE (1).
  i This gate is separate from `conformance`; `conformance = "off"` does not bypass it.
  i To keep these values in R, set `apply_spec(on_coercion_loss = "keep")`, or retype the spec with `set_type()` (dataType "float" or "decimal").
  i To see every finding at once, run `check_spec(x, spec, dataset)`.


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.