Validate codecheck.yml metadata against CrossRef
Source:R/validation.R
validate_codecheck_yml_crossref.RdValidate codecheck.yml metadata against CrossRef
Usage
validate_codecheck_yml_crossref(
yml_file = "codecheck.yml",
strict = FALSE,
check_orcids = TRUE
)Value
Invisibly returns a list with validation results:
- valid
Logical indicating if all checks passed
- issues
Character vector of any issues found
- crossref_metadata
The metadata retrieved from CrossRef (if available)
Details
Retrieves metadata from CrossRef for the paper's DOI and compares it with the local codecheck.yml metadata. Validates title and author information (names and ORCIDs against CrossRef data).
This function is useful for ensuring consistency between the published paper metadata and the CODECHECK certificate, helping to catch typos, outdated information, or missing data.
Note: For comprehensive validation including ORCID name verification and
codechecker validation, use validate_contents_references() instead.