Skip to content

Conversation

@salim-b
Copy link
Contributor

@salim-b salim-b commented Jan 31, 2024

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.25.2 to R/sysdata.rda, which now also includes plotly.js' strict bundle, so now plotly::partial_bundle(type = "strict") works as intended.

Creates the proper `bundleTraceMap` list as internal data object directly from the upstream JS file when updating plotly.js.

This commit adds an updated `bundleTraceMap` for the currently used plotly.js v2.11.1 to `R/sysdata.rda`.
@salim-b
Copy link
Contributor Author

salim-b commented Jan 31, 2024

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

This makes non-base-R dependencies clearly apparent
@salim-b
Copy link
Contributor Author

salim-b commented Jun 6, 2024

@cpsievert Anything else I need to do to get this merged?

@salim-b salim-b changed the title Create plotly.js bundle map programmatically feat: create plotly.js bundle map programmatically Feb 13, 2025
@salim-b
Copy link
Contributor Author

salim-b commented Feb 1, 2026

@cpsievert I've updated this PR to the latest changes. I'd be glad if you could merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants