- Export validation results from the validate package to ESS JSON reporting standard (pdf)
- Read validation results from ESS JSON reporting standard.
- Create attractive validation reports based on results from the validate package (EXPERIMENTAL)
- On Windows, make sure that you have the correct version of rtools installed.
- Install the drat package.
- From the R command-line do
drat::addRepo("markvanderloo")
install.packages("validatereport", type="source")
git clone https://data-cleaning/validatereport
cd validatereport
make install
library(validatereport)
data(SBS2000)
rules <- validator(turnover >= 0
, mean(turnover, na.rm=TRUE) >= 1
, turnover + other.rev == total.rev)
result <- confront(SBS2000, rules, key="id")
json <- ess_validation_report(result, rules)
cat(json)
# or, export to file
export_ess_validation_report(result, rules, file="report.json")