Skip to content

Commit fc8f7d5

Browse files
authored
Merge pull request #3478 from tidyverse/v3.2.1-rc
V3.2.1 rc
2 parents 541ae99 + 8f27d7a commit fc8f7d5

File tree

6 files changed

+25
-121
lines changed

6 files changed

+25
-121
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: ggplot2
2-
Version: 3.2.0.9000
2+
Version: 3.2.1.9000
33
Title: Create Elegant Data Visualisations Using the Grammar of Graphics
44
Description: A system for 'declaratively' creating graphics,
55
based on "The Grammar of Graphics". You provide the data, tell 'ggplot2'

NEWS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@
5555

5656
* `stat_density2d()` can now take an `adjust` parameter to scale the default bandwidth. (#2860, @haleyjeppson)
5757

58+
# ggplot2 3.2.1
59+
60+
This is a patch release fixing a few regressions introduced in 3.2.0 as well as
61+
fixing some unit tests that broke due to upstream changes.
62+
63+
* `position_stack()` no longer changes the order of the input data. Changes to
64+
the internal behaviour of `geom_ribbon()` made this reordering problematic
65+
with ribbons that spanned `y = 0` (#3471)
66+
* Using `qplot()` with a single positional aesthetic will no longer title the
67+
non-specified scale as `"NULL"` (#3473)
68+
* Fixes unit tests for sf graticule labels caused by chages to sf
69+
5870
# ggplot2 3.2.0
5971

6072
This is a minor release with an emphasis on internal changes to make ggplot2

R/position-stack.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ PositionStack <- ggproto("PositionStack", Position,
197197
)
198198
}
199199

200-
rbind(neg, pos)
200+
rbind(neg, pos)[match(seq_len(nrow(data)), c(which(negative), which(!negative))),]
201201
}
202202
)
203203

R/quick-plot.r

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ qplot <- function(x, y, ..., data, facets = NULL, margins = FALSE,
7171
if (!missing(position)) warning("`position` is deprecated", call. = FALSE)
7272
if (!is.character(geom)) stop("`geom` must be a character vector", call. = FALSE)
7373

74-
exprs <- enquos(x = x, y = y, ..., .ignore_empty = "all")
74+
exprs <- enquos(x = x, y = y, ...)
75+
is_missing <- vapply(exprs, quo_is_missing, logical(1))
7576
# treat arguments as regular parameters if they are wrapped into I() or
7677
# if they don't have a name that is in the list of all aesthetics
7778
is_constant <- (!names(exprs) %in% ggplot_global$all_aesthetics) |
7879
vapply(exprs, quo_is_call, logical(1), name = "I")
7980

80-
mapping <- new_aes(exprs[!is_constant], env = parent.frame())
81+
mapping <- new_aes(exprs[!is_missing & !is_constant], env = parent.frame())
8182

8283
consts <- exprs[is_constant]
8384

cran-comments.md

Lines changed: 3 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
This is a resubmission with changes as requested by CRAN
2-
3-
- Remove a subset of unit tests when running on CRAN to keep check time low
1+
This is a patch release fixing the errors caused by changes to sf, as well as
2+
fixing a few regressions. As all changes are internal and non-breaking a reverse
3+
dependency check has not been performed
44

55
-------
66

@@ -17,112 +17,3 @@ This is a resubmission with changes as requested by CRAN
1717
installed size is 6.2Mb
1818
sub-directories of 1Mb or more:
1919
doc 3.4Mb
20-
21-
## revdepcheck results
22-
23-
We checked 2675 reverse dependencies (2265 from CRAN + 410 from BioConductor), comparing R CMD check results across CRAN and dev versions of this package.
24-
25-
* We saw 6 new problems
26-
* We failed to check 76 packages
27-
28-
Issues with CRAN packages are summarised below. The maintainers of the packages have been notified and most fixes are already on the way to CRAN.
29-
30-
### New problems
31-
(This reports the first line of each new failure)
32-
33-
* bayesAB
34-
checking examples ... ERROR
35-
36-
* CSTools
37-
checking tests ...
38-
39-
* ggstatsplot
40-
checking tests ...
41-
42-
* HistDAWass
43-
checking examples ... ERROR
44-
45-
* MTLR
46-
checking tests ...
47-
48-
* vdiffr
49-
checking tests ...
50-
51-
### Failed to check
52-
53-
* aslib (NA)
54-
* BACA (NA)
55-
* BACCT (NA)
56-
* bamdit (NA)
57-
* BayesRS (NA)
58-
* BMSC (NA)
59-
* BNSP (NA)
60-
* BPEC (NA)
61-
* bsam (NA)
62-
* BTSPAS (NA)
63-
* CaliCo (NA)
64-
* CollapsABEL (NA)
65-
* colorednoise (NA)
66-
* crmPack (NA)
67-
* Crossover (NA)
68-
* Deducer (NA)
69-
* DeLorean (NA)
70-
* DiversityOccupancy (NA)
71-
* dynfrail (NA)
72-
* dynr (NA)
73-
* evoper (NA)
74-
* ewoc (NA)
75-
* fingerPro (NA)
76-
* fsdaR (NA)
77-
* G2Sd (NA)
78-
* growthPheno (NA)
79-
* imageData (NA)
80-
* imbalance (NA)
81-
* InSilicoVA (NA)
82-
* jarbes (NA)
83-
* joineRML (NA)
84-
* JointAI (NA)
85-
* likeLTD (NA)
86-
* lilikoi (NA)
87-
* lime (NA)
88-
* llama (NA)
89-
* LLSR (NA)
90-
* matchingMarkets (NA)
91-
* mbgraphic (NA)
92-
* mcmcabn (NA)
93-
* MetaStan (NA)
94-
* mleap (NA)
95-
* morse (NA)
96-
* mwaved (NA)
97-
* NPflow (NA)
98-
* oceanis (NA)
99-
* OpenStreetMap (NA)
100-
* openVA (NA)
101-
* petro.One (NA)
102-
* phase1PRMD (NA)
103-
* phase1RMD (NA)
104-
* pimeta (NA)
105-
* poppr (NA)
106-
* PortfolioEffectHFT (NA)
107-
* qdap (NA)
108-
* RcmdrPlugin.FuzzyClust (NA)
109-
* Rdrools (NA)
110-
* RDS (NA)
111-
* rmcfs (NA)
112-
* robustHD (NA)
113-
* rpanel (NA)
114-
* rpf (NA)
115-
* rrepast (NA)
116-
* RSCAT (NA)
117-
* rstanarm (NA)
118-
* rstap (NA)
119-
* rsvg (NA)
120-
* RtutoR (NA)
121-
* SeqFeatR (NA)
122-
* simmr (NA)
123-
* sitmo (NA)
124-
* spcosa (NA)
125-
* TeachingDemos (NA)
126-
* vortexR (NA)
127-
* XLConnect (NA)
128-
* zooaRchGUI (NA)

tests/testthat/test-position-stack.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ test_that("negative and positive values are handled separately", {
2121
p <- ggplot(df, aes(x, y, fill = factor(g))) + geom_col()
2222
dat <- layer_data(p)
2323

24-
expect_equal(dat$ymin[dat$x == 1], c(-1, 0, 1))
25-
expect_equal(dat$ymax[dat$x == 1], c(0, 1, 2))
24+
expect_equal(dat$ymin[dat$x == 1], c(0, -1, 1))
25+
expect_equal(dat$ymax[dat$x == 1], c(1, 0, 2))
2626

27-
expect_equal(dat$ymin[dat$x == 2], c(-3, 0))
28-
expect_equal(dat$ymax[dat$x == 2], c(0, 2))
27+
expect_equal(dat$ymin[dat$x == 2], c(0, -3))
28+
expect_equal(dat$ymax[dat$x == 2], c(2, 0))
2929
})
3030

3131
test_that("can request reverse stacking", {
@@ -36,7 +36,7 @@ test_that("can request reverse stacking", {
3636
p <- ggplot(df, aes(1, y, fill = g)) +
3737
geom_col(position = position_stack(reverse = TRUE))
3838
dat <- layer_data(p)
39-
expect_equal(dat$ymin, c(-2, -3, 0, 2))
39+
expect_equal(dat$ymin, c(-2, 0, -3, 2))
4040
})
4141

4242
test_that("data with no extent is stacked correctly", {

0 commit comments

Comments
 (0)