Skip to content

Conversation

@teunbrand
Copy link
Collaborator

This PR aims to fix #6695.

Generally, the as.list() methods come in 2 flavours based on class structure.

  1. For property-based classes, like ggplot/ggplot_built/element_* classes, we return the properties.
  2. For list-based classes, like mapping/theme/labels, we return the list data.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

Merge branch 'main' into S7_as_list

# Conflicts:
#	tests/testthat/_snaps/theme.md
#	tests/testthat/test-theme.R
@teunbrand teunbrand merged commit 6ea6ead into tidyverse:main Dec 4, 2025
13 checks passed
@teunbrand teunbrand deleted the S7_as_list branch December 4, 2025 10:45
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.

as.list() methods for S7 classes

2 participants