validate_dataset_json {datasetjson} | R Documentation |
Validate a Dataset JSON file
Description
This function calls jsonvalidate::json_validate()
directly, with the
parameters necessary to retrieve the error information of an invalid JSON
file per the Dataset JSON schema.
Usage
validate_dataset_json(x)
Arguments
x |
File path or URL of a Dataset JSON file, or a character vector holding JSON text |
Value
A data frame
Examples
## Not run:
validate_dataset_json('path/to/file.json')
validate_dataset_json('https://www.somesite.com/file.json')
## End(Not run)
ds_json <- dataset_json(iris, "IG.IRIS", "IRIS", "Iris", iris_items)
js <- write_dataset_json(ds_json)
validate_dataset_json(js)
[Package datasetjson version 0.2.0 Index]