Make validation more explicit · Issue #125 · frictionlessdata/frictionless-r (original) (raw)
None of the documentation mentions when validation happens, though it's a key value add of this package. I would also suggest adding a native call to show the issues from the validator. At least a code snippet like this could be a useful example to tell people how to use readr to check their Data Package:
library(frictionless) # https://docs.ropensci.org/frictionless/
library(readr) # https://readr.tidyverse.org/reference/problems.html
# Read a Data Package
my_package <- read_package("datapackage.json")
# Read and validate the resource
my_resource = read_resource(my_package, "my-package-csv")
# Use tidyverse/readr to explain the problem with the data
problems(my_resource)