Validate Data Against a 'data-dict.yaml' Data Dictionary

A data dictionary describes a collection of related tables: their columns, types, constraints, relationships, and glossary. Validate a dataset against its dictionary and read the findings as an HTML report. Reference: < https://data-dict.tidyverse.org>.


datadict

datadict validates a dataset against a data-dict.yaml data dictionary, and reports the findings as a self-contained HTML report.

Installation

# Install the released version from CRAN
install.packages("testthat")

# Or the development version from GitHub:
# install.packages("pak")
pak::pak("r-lib/testthat")

Example

Point dd_validate_data() at a directory holding a data-dict.yaml file and the parquet files it describes:

library(datadict)

dd_validate_data("inst/data")

This writes an HTML report and opens it in a browser. A dataset that fails validation is not an R error: the report is the point, so check the returned status to see whether the run passed.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("datadict")

0.1.0 by Gábor Csárdi, a month ago


https://data-dict.tidyverse.org, https://github.com/tidyverse/data-dict


Report a bug at https://github.com/tidyverse/data-dict/issues


Browse source code at https://github.com/cran/datadict


Authors: Gábor Csárdi [aut, cre] (ORCID: , Hadley Wickham [aut] , Posit Software , PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, processx, tools, utils

Suggests nanoparquet, testthat, withr


See at CRAN