A standalone function to validate a data package descriptor.

validate(descriptor)

Arguments

descriptor

data package descriptor, one of:

  • string with the local CSV file (path)

  • string with the remote CSV file (url)

  • list object

Value

A list with:

  • valid TRUE if valid

  • errors a list with errors if valid FALSE

See also

Examples

validate(descriptor = '{"name": "Invalid Datapackage"}')
#> $valid #> [1] FALSE #> #> $errors #> $errors[[1]] #> [1] "Descriptor validation error:\n data.resources - is required" #> #>