Checks chunk outputs for a variety of problems: correct structure, correct attributes attached, matches promised outputs. Generates warnings and/or errors if any deviance.

check_chunk_outputs(
  chunk,
  chunk_data,
  chunk_inputs,
  promised_outputs,
  outputs_xml
)

Arguments

chunk

Chunk name, character

chunk_data

Data produced by chunk, generally a tibble

chunk_inputs

Names of chunk inputs, character

promised_outputs

Names of chunk's promised outputs, character

outputs_xml

Logical vector: are outputs XML?