Ruler 0.3.0 Data Validation Report Tool User Manual

Ruler is an R package for creating data validation pipelines and tidy reports using dplyr grammar.


Ruler 0.3.0 Data Validation Report Tool User Manual - cover page
Brand
Ruler
Category
Programming
Document type
User Manual
Language
English
Pages
24
File format
PDF
File size
136 KB
Published
18 November, 2026
Updated
18 November, 2026
MD5 checksum
262C178C71D891CA8A3C7283822BB86D

About this manual

Ruler is an R package designed to help users create data validation pipelines and tidy reports. It uses the dplyr grammar for data manipulation. The package allows defining rule packs for data, groups, columns, rows, and cells. After applying rules, it generates exposure attributes with validation reports. Users can act on exposure results, such as asserting rule breakers or performing data transformations.

The package includes functions like `expose()` to apply rule packs, `act_after_exposure()` to perform actions based on exposure, and `assert_any_breaker()` to assert the presence of rule breakers. It also supports binding multiple exposures and provides detailed reports for validation results.

What's inside

  • act_after_exposure
  • any_breaker
  • assert_any_breaker
  • bind_exposures
  • cell-pack
  • column-pack
  • data-pack
  • expose
  • exposure
  • group-pack

Frequently asked questions

How do I use ruler to validate data?

Use the `expose()` function to apply rule packs to your data. This creates an exposure attribute with validation report information. You can then use functions like `act_after_exposure()` or `assert_any_breaker()` to act on the exposure results.

What is the purpose of the `assert_any_breaker()` function?

It asserts if exposure resulted in detecting some rule breakers. It can return an error, warning, or message depending on the .type argument.

Download PDF (136 KB)