vw_spec_version | R Documentation |
Use this function to determine the library
and version
of a vegaspec
.
vw_spec_version(spec)
spec |
An object to be coerced to |
Returns a list with two elements:
library
character
, either "vega"
or "vega_lite"
version
character
, version tag
list
with elements library
, version
vw_spec_version(spec_mtcars)
# vw_to_vega() requires the V8 package
vw_spec_version(vw_to_vega(spec_mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.