Learn R Programming

datapackage.r (version 1.3.5)

validate: validate descriptor

Description

A standalone function to validate a data package descriptor.

Usage

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

https://github.com/frictionlessdata/datapackage-r#validate

Examples

Run this code
# NOT RUN {
validate(descriptor = '{"name": "Invalid Datapackage"}')

# }

Run the code above in your browser using DataLab