File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change
1
+ # ggplot2 3.4.3
2
+
3
+ This hotfix release addresses a version comparison change in r-devel. There are
4
+ no user-facing or breaking changes.
5
+
1
6
# ggplot2 3.4.2
2
7
This is a hotfix release anticipating changes in r-devel, but folds in upkeep
3
8
changes and a few bug fixes as well.
Original file line number Diff line number Diff line change 1
1
# Backport fix from R 3.3:
2
2
# https://github.com/wch/r-source/commit/4efc81c98d262f93de9e7911aaa910f5c63cd00f
3
- if (getRversion() < 3.3 ) {
3
+ if (getRversion() < " 3.3" ) {
4
4
absolute.units <- getFromNamespace(" absolute.units" , " grid" )
5
5
absolute.units.unit <- getFromNamespace(" absolute.units.unit" , " grid" )
6
6
absolute.units.unit.list <- getFromNamespace(" absolute.units.unit.list" , " grid" )
@@ -18,6 +18,6 @@ if (getRversion() < 3.3) {
18
18
on_load(backport_unit_methods())
19
19
20
20
# isFALSE() is available on R (>=3.5)
21
- if (getRversion() < 3.5 ) {
21
+ if (getRversion() < " 3.5" ) {
22
22
isFALSE <- function (x ) is.logical(x ) && length(x ) == 1L && ! is.na(x ) && ! x
23
23
}
Original file line number Diff line number Diff line change
1
+
2
+ # In R devel from 4.3.0 onwards, the density calculation has slightly changed,
3
+ # which affects visual snapshots that use a density calculation, like
4
+ # `geom_violin()` and `geom_density()`.
5
+ # See https://developer.r-project.org/blosxom.cgi/R-devel/NEWS/2023/05/03#n2023-05-03
6
+ #
7
+ # It has a backwards compatibility argument called 'old.coords' that can be used
8
+ # to perform the classic density calculation, which means we can stably use
9
+ # visual tests in R devel.
10
+ #
11
+ # Since that argument is not available in older versions, we have to use the
12
+ # following workaround. Here, we conditionally override the default
13
+ # density method to use `old.coords = TRUE`.
14
+ if (" old.coords" %in% names(formals(stats :: density.default ))) {
15
+ registerS3method(
16
+ " density" , " default" ,
17
+ function (... , old.coords = TRUE ) {
18
+ stats :: density.default(... , old.coords = old.coords )
19
+ }
20
+ )
21
+ }
You can’t perform that action at this time.
0 commit comments