plotly.R
plotly.R copied to clipboard
Create plotly.js bundle map programmatically
Creates the proper bundleTraceMap
list as internal package data object directly from the upstream JS file when plotly.js is updated.
The data is sourced from the file tasks/util/constants.js
of the matching plotly.js Git tag ~~via yay::gh_text_file()
, which I wrote. The package is not (yet) available on CRAN and thus must be installed via remotes::install_gitlab("rpkg.dev/yay")
for the time being. I think this shouldn't be an issue since tools/update_plotlyjs.R
is run manually during development and is not intended to be run by users.~~
This commit adds an updated bundleTraceMap
for the currently used plotly.js v2.11.1 to R/sysdata.rda
, which now also includes plotly.js' strict
bundle, so now plotly::partial_bundle(type = "strict")
works as intended.
Note that the failing tests are unrelated to this PR, AFAICT.