plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

Create plotly.js bundle map programmatically

Open salim-b opened this issue 5 months ago • 2 comments

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.

salim-b avatar Jan 31 '24 15:01 salim-b

Note that the failing tests are unrelated to this PR, AFAICT.

salim-b avatar Jan 31 '24 16:01 salim-b