vw_spec_version {vegawidget} | R Documentation |
Determine vegaspec version
Description
Use this function to determine the library
and version
of a vegaspec
.
Usage
vw_spec_version(spec)
Arguments
spec |
An object to be coerced to |
Details
Returns a list with two elements:
library
character
, either"vega"
or"vega_lite"
version
character
, version tag
Value
list
with elements library
, version
Examples
vw_spec_version(spec_mtcars)
# vw_to_vega() requires the V8 package
vw_spec_version(vw_to_vega(spec_mtcars))
[Package vegawidget version 0.5.0 Index]