Ruler is an R package for creating data validation pipelines and tidy reports using dplyr grammar.
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.
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.
It asserts if exposure resulted in detecting some rule breakers. It can return an error, warning, or message depending on the .type argument.