powered by
Use this function to determine the library and version of a vegaspec.
library
version
vegaspec
vw_spec_version(spec)
An object to be coerced to vegaspec, a Vega/Vega-Lite specification
list with elements library, version
list
Returns a list with two elements:
character, either "vega" or "vega_lite"
character
"vega"
"vega_lite"
character, version tag
# NOT RUN { vw_spec_version(spec_mtcars) # vw_to_vega() requires the V8 package vw_spec_version(vw_to_vega(spec_mtcars)) # }
Run the code above in your browser using DataLab