vw_handler_add_effect()
to be compliant with upcoming changes in {glue} (#227)vegaspec
) needs to be converted into a vegaspec
or vegawidget
to be rendered (#216)Update method signatures of internal function for autosizing (#225)
Update vega_version() internals to comport with R 4.4 (#220)
Update GitHub Actions, Roxygen (#221)
Use Vega-Lite 5.5.0. (#208)
Add module support to vw_shiny_get_* functions. (#203, @rhenkin)
Update Actions. (#209)
vegawidget now supports the last two Vega-Lite major versions, currently versions 5 and 4.
However, for a given loading of this package (or RMarkdown file), the vegawidget()
function can use only one major-version; this version is determined using the $schema
element of the first vegaspec
evaluated using vegawidget()
.
This restriction does not apply to the image functions, e.g. vw_to_svg()
, or to the compilation function, vw_to_vega()
.
Functions introduced:
vega_version_all()
: all packaged versions.vega_version_available()
: available versions, subject to locking.(#169)
Update Actions. (#188)
Use Vega-Lite 5.2.0. (#183)
Update s3_register()
. (#193)
Deprecated schema
folder from package files, i.e. system.file("schema", package = "vegawidget")
. This folder will be removed at the release following v0.4.1. Instead, you can use the vega_schema()
function (with new optional version
argument) to retrieve from Vega:
(#185)
Use V8 rather than node to support image-functions and vw_to_vega()
. This adds V8 as a package-dependency, but removes the system-dependency for node. As a result, remote-data loading works as long as you can access the data from R. (#85)
Update contributor-information. (#176)
Clean up inst
folder: remove test-apps
. (#197)
Fix test to comply with testthat changes. (#162, @lionel-)
When converting vegaspec to JSON, serialize NA
to null
. (#160)
New function vw_set_base_url()
:
baseURL
. (#147)use_vegawidget()
now re-exports vw_set_base_url()
, does not re-export spec_mtcars
. (#150)vw_to_svg()
and friends) respect the baseURL
option set using vw_set_base_url()
. (#148)vega_embed()
:
the actions
argument lets you specify export$png
and export$svg
. (#115)
the bulk of the options for vega-embed can be supplied as named arguments using ...
rather than as explicit arguments to vega_embed()
. This will make it easier to support future enhancements to vega-embed.
Unique identifier used in attaching data from local files; elementId
is used if provided, if not an md5 hash of the files is used. This would be useful for knitting documents, but attaching local data works only for interactive analysis, not for knitr environments. Hence this “fix” is anticipation of other enchancements. (#125)
vegawidget()
: keep precision in JSON representation for accurate rendering of small values (< 0.001). (#130, @datapixie)
knit_print()
: repair by exporting the S3 method. (#132)
as_vegaspec()
: adds encoding
argument (default "UTF-8"
) for character
method, for files and URLs. (#117, with @g3o2)
Upgrade to Vega-Lite 4.0.2, Vega 5.9.0, vega-embed 6.2.0.
Update Gapminder app, vw_shiny_demo("data-set-gapminder")
.
addDataListener()
method offered by vega-view, use vw_shiny_demo("data-set-get")
for more information. (#65)Modify knit_print()
to handle non-HTML formats. Instead of using the webshot package, the knit_print()
function converts charts to either png
, svg
(useful for github_document
), or pdf
(useful for pdf_document
) format. (#44, @AliciaSchep)
Improve implementation of the base_url
argument in vegawidget()
; it works for both local and remote paths. (#63, with @AliciaSchep)
Update templating functions, splitting to two functions: use_vegawidget()
and use_vegawidget_interactive()
, which let you import and re-export basic-rendering and interactive functions, respectively. If your package keeps its version of a spec in its own S3 class, you can call use_vegawidget()
with that class’ name. (#83)
Move shiny from an Imports
dependency to a Suggests
dependency. (#82)
(Of interest to developers) modify the class-naming for Vega-Lite specs, adding a another level of S3 class that describes the type of chart, e.g. unit, layer, facet, etc. (#77)
Modify contribution guidelines; use master
as reference branch for all pull-requests.
vw_to_svg()
, vw_to_bitmap()
, vw_write_svg()
, and vw_write_png()
- these functions require that you have node installed on your computer, and the rsvg package, to use vw_to_bitmap()
and vw_write_png()
adds elementId
argument to vegawidget()
; had been available as part of ...
passed to htmlwidgets::createWidget()
compiles Shiny demonstration apps in inst/shiny-demo
, adds function vw_shiny_demo()
to access them
adds Shiny setter-functions: vw_shiny_set_signal()
, vw_shiny_set_data()
, vw_shiny_run()
, getter-functions: vw_shiny_get_signal()
, vw_shiny_get_event()
, and handler helper-functions vw_handler_signal()
, vw_handler_event()
, vw_handler_add_effect()
, vw_handler_compose()
, and vw_handler_body_compose()
tries a kinder, gentler method for enforcing sizing by implementing a sizing policy rather than overwriting the enclosing element
deprecates block-functions: vw_create_block()
, vw_retrieve_block()
; moved to vegablock
adds learnr tutorial, “Overview”
adds datasets: data_seattle_hourly
, data_seattle_daily
, data_category
changes default-display for vw_examine()
adds function vw_rename_data()
to rename named datasets within a vegaspec (#34)
adds function vw_serialize_data()
to help format dates and datetimes in data frames (#33)
adds function vega_schema()
to create a string describing a schema-URL (#32)
adds function use_vegawidget()
to help other packages use these functions (#21)
overhauls the API (#15, with @AliciaSchep)
write_svg()
-> vw_write_svg()
write_png()
-> vw_write_png()
to_vega()
-> vw_to_vega()
to_svg()
-> vw_to_svg()
to_png()
-> vw_to_png()
png_bin()
-> vw_png_bin()
spec_version()
-> vw_spec_version()
examine()
-> vw_examine()
block_retrieve()
-> vw_retrieve_block()
block_create_gistid()
-> vw_create_block_gistid()
block_create()
-> vw_create_block()
block_config()
-> vw_block_config()
autosize()
-> vw_autosize()
as_json()
-> vw_as_json()
spec_mtcars
-> spec_mtcars
NEWS.md
file to track changes to the package