Skip to content

Release 4.0.4 - #6919

Merged
teunbrand merged 39 commits into
mainfrom
rc/4.0.4
Nov 16, 2026
Merged

teunbrand merged 39 commits into
mainfrom
rc/4.0.4

Conversation

@teunbrand

@teunbrand teunbrand commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

This PR aims to fix #6918.

teunbrand and others added 30 commits November 11, 2025 09:58
- Correct reference to colour aesthetic instead of fill
- Fix typo ("which what" → "which is what")

Fixes #6805
…rted (#6793)

* add stats:: in front of stats functions that were not explicitly imported

* use `vec_ave()`
* use vctrs-variant of `stats::ave()`

* replace other instances of `stats::ave()` too
* update: geom_boxplot to add quantile type argument

* update: change quantile_type to quantile.type

* update: NEWS.md

* update: document()

* tiny doc polish
* as.list for theme elements

* move methods

* as.list/convert for other classes

* reformat

* list to theme element conversion

* add tests

* add news bullet
* Return bare lists from S7 list conversion

* Normalize constructor context in validation snapshot

* Use built-in S7 list conversion

* Retain explicit list conversion for compatibility
* stabilise snapshots by fixing legend order

* guard skippable visual snapshots
* Preserve operand expressions with updated S7 dispatch

* docs: Simplify S7 compatibility release note

* Use available S7 package lifecycle hooks

* Resolve optional S7 exports dynamically
* Declare individual compatibility aliases in S7 inheritance

Use unnamespaced abstract S7 ancestors for plot and legacy element aliases
and declare the existing mapping S3 classes. Preserve trailing marker class
order so S7 operator dispatch continues to precede legacy fallbacks.

* Use available S7 package lifecycle hooks

* Keep S7 hierarchy preview separate from lifecycle hooks

* Use helper function for legacy class names

* Drop NEWS.md entry to avoid conflicts with main

---------

Co-authored-by: Teun van den Brand <tahvdbrand@gmail.com>
> checking R code for possible problems ... [40s] NOTE
Found calls to structure() using deprecated special names:
  ggplot2/tests/testthat/test-annotate.R (.Names: 1)
'.Names' should be changed to 'names'.
Comment thread tests/testthat/test-theme.R Outdated
expect_true(inherit_blanks(theme_void()))
})

test_that("element subclasses retain legacy classes", {

This comment was marked as resolved.

Comment thread NEWS.md
Comment on lines -86 to -88
This is a smaller patch release focussed on fixing regressions from 4.0.0 and
# ggplot2 4.0.1

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Also took care to unmangle some previously mangled news sections, mostly duplications

@teunbrand
teunbrand marked this pull request as ready for review November 16, 2026 09:28
@teunbrand
teunbrand requested a review from thomasp85 November 16, 2026 09:28
Comment thread R/plot.R Resolved
@teunbrand
teunbrand merged commit 87a95d9 into main Nov 16, 2026
13 checks passed
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.

Release ggplot2 4.0.4

8 participants