Description Usage Arguments Value Examples
Will auto-generate function definitions & documentation based on provided schema.
1 |
schema |
A JSON schema read into R as a list, e.g using [jsonlite::read_json()] |
A character vector with function definitions
1 2 3 4 5 6 | schema_file <- Sys.glob(
file.path(system.file("schema/vega-lite", package = "vegawidget"),
"*.json")
)
VL_SCHEMA <- jsonlite::read_json(schema_file)
api <- create_api(VL_SCHEMA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.