Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Jun 25, 2025

  • Add support for kaleido v1.0+ in save_image(), while maintaining backward compatibility with legacy kaleido (v0.2.x)
  • Add plotly_build() method for ggmatrix objects (e.g., from GGally::ggpairs())
  • CI visual tests remain pinned to kaleido v0.2.1 due to rendering differences in v1.0

@cpsievert cpsievert changed the title Get CI passing again Updates for new kaleido release (save_image()) Jun 25, 2025
cpsievert and others added 8 commits January 19, 2026 10:10
plotly_build() now works with ggmatrix objects (e.g., from
GGally::ggpairs()). Previously, ggplotly() worked but plotly_build()
did not have a method for this class.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cpsievert cpsievert requested a review from Copilot January 19, 2026 18:42
@cpsievert cpsievert marked this pull request as ready for review January 19, 2026 18:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the plotly package to support the new kaleido v1.0+ release for save_image() functionality, while also fixing a bug with ggmatrix object handling and updating test infrastructure.

Changes:

  • Added support for kaleido v1.0+ by implementing a new scope handler alongside the legacy version
  • Fixed plotly_build() to handle ggmatrix objects from GGally::ggpairs()
  • Updated test infrastructure to use shinytest2 instead of deprecated shinytest

Reviewed changes

Copilot reviewed 44 out of 51 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
R/kaleido.R Implements new kaleido scope handler for v1.0+ alongside legacy handler
R/plotly_build.R Adds S3 method for ggmatrix class
NAMESPACE Exports new plotly_build.ggmatrix method
tests/testthat/test-api.R Skips deprecated Chart Studio API tests
tests/testthat/helper-skip.R Updates dependency from shinytest to shinytest2
.github/workflows/R-CMD-check.yaml Pins kaleido to v0.2.1 for CI testing with note about v1.0+ rendering issues
DESCRIPTION Updates RoxygenNote version
NEWS.md Documents improvements and bug fixes
man/*.Rd Updates conditional example wrappers for R version compatibility
inst/examples/shiny/event_data/tests/testthat/_snaps/shinytest2/*.json Updates test snapshots with new crosstalk version and layout values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cpsievert cpsievert merged commit 73bd179 into master Jan 19, 2026
10 checks passed
@cpsievert cpsievert changed the title Updates for new kaleido release (save_image()) Add support for kaleido v1.0 (save_image()); fix CI Jan 19, 2026
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