View source: R/validate_dataset_json.R
validate_dataset_json | R Documentation |
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.
validate_dataset_json(x)
x |
File path or URL of a Dataset JSON file, or a character vector holding JSON text |
A data frame
## 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,
item_oid = "IG.IRIS",
name = "IRIS",
dataset_label = "Iris",
columns = iris_items
)
js <- write_dataset_json(ds_json)
validate_dataset_json(js)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.