For an ARD made elsewhere and taken in (a report's ard_source is
import:<file>). Checks, each a row of the result:
Arguments
- ard
The ARD (a data frame or a cards ARD), e.g.
tfl_read_ard().- spec
Optional: the report's table definition (
tfl_read_table_spec()), narrowed to the report or withoutput_id.- output_id
The report, when
specdefines several.
Value
A data frame, one row per problem: level ("error": the report
cannot be made; "warning": something it reads is missing; "note"),
check and message. No rows: nothing found.
Details
shape: the columns every ARD has (
variable,stat_name,stat); with cards installed, its owncards::check_ard_structure()(as notes, less its wish formethodrows, which no report reads); an old column name (fmt_fn, nowfmt_fun). AgroupNwithoutgroupN_levelis a result across the groups (a test), as cardx gives it.with
spec, the report's table definition: the columns itstablesroles name (cols,rows) are in the ARD (as a group or a variable), the variables itscellsname are analysed, and the statistics its templates read ({mean},{n:d}) are there.