validate_codebook: Validate generated codebook against DDI Codebook 2.5

View source: R/tools.R

validate_codebookR Documentation

Validate generated codebook against DDI Codebook 2.5

Description

Validates your constructed codebook against the DDI Codebook 2.5 schema. While all built-in ddi_ functions are written with the schema in mind, this is useful if you create your own DDI nodes (there are many and it will take a while to implement all of them).

Usage

validate_codebook(codebook)

Arguments

codebook

The codebook root node, output of ddi_codeBook().

Value

A logical (with attributes containing any errors) that indicates passing or failing.

Examples

cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample")))))
validate_codebook(cb)


Global-TIES-for-Children/rddi documentation built on Oct. 24, 2022, 9:50 p.m.