This function adds a new entry to the validator's QA log with details such as a description, type of entry, timestamp, pass status, and failing IDs.
add_qa_entry(
validator,
description,
failing_ids,
outcome = NA,
entry_type = c("info", "warning", "error")
)The updated validator object with the new entry appended to its QA log.
a Validator object.
A character string describing the QA entry.
Optional: A vector of IDs that failed the QA check. If more than 10 IDs are provided, only the first 10 are stored, with a note indicating the additional count.
Optional: A logical value indicating whether the QA check passed. If not provided or invalid, defaults to NA.
Optional: A character string specifying the type of entry. Must be one of "info", "warning", or "error". Defaults to "info".