New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release ggplot2 3.1.0 #2890
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@topepo Could you run @hadley Could you run |
Here are the build logs from my I'll rerun with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@hadley Still getting rhub errors even with
https://builder.r-hub.io/status/ggplot2_3.0.0.9000.tar.gz-a168b584c5be475a94a8ff7e8163c249 |
It seems dependency installation fails. I see errors around line 509, though it's not clear which package is wrong.
This seems an error from here: https://github.com/wch/r-source/blob/521c90a175d67475b9f1b43d7ae68bc48062d8e6/src/library/utils/R/windows/install.packages.R#L58 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
15 packages are newly broken in revdeps. That's not too bad. I suspect most of them will be due to the aesthetic name standardization that we introduced. That's what's causing the problems in my ggridges package. I used an aesthetic @hadley @batpigandme @thomasp85 @karawoo @dpseidel @yutannihilation If you have time to look at any of the other broken packages to see what the issues are that would be great. |
I pulled out the |
ggmap's installation error seems due to #2741 and this is already fixed in the dev version of ggmap: dkahle/ggmap@86ccd74
|
Spreadsheet so we can keep track of what's been done (à la ggplot2 3.0.0 release) https://docs.google.com/spreadsheets/d/1T0t3dsF_6TPqa-dEztPiM51h-F9FhUWzVIsVeb3sl5A/edit#gid=0 |
Shoot, if you don't have an rstudio email, shoot me an email from wherever to my rstudio email (or request access from the googlesheet), and I can add editing powers for you |
Compared to @batpigandme's gist, @topepo's summary omits some packages. Here's the packages and reasons (seems ignorable except for ggtern):
@batpigandme library(tidyverse)
res <- httr::GET("https://gist.githubusercontent.com/batpigandme/b59dca03bfb53b6e9a52332e306ff736/raw/bb05bfe98588d7a0194fd1fe59677d75efef3822/newlybroken_revdeps.md")
httr::content(res) %>%
stringr::str_split("\n") %>%
unlist() %>%
stringr::str_subset("^# ") %>%
cat(sep = "\n")
#> # ActisoftR
#> # AneuFinder
#> # BloodCancerMultiOmics2017
#> # dartR
#> # derfinderPlot
#> # GenomicDataCommons
#> # ggmap
#> # ggridges
#> # ggtern
#> # gifski
#> # GOexpress
#> # MCbiclust
#> # mglR
#> # PTXQC
#> # RITAN
#> # scDD
#> # seqsetvis
#> # shadowtext
#> # tricolore
#> # tsbox Created on 2018-09-26 by the reprex package (v0.2.1) |
For ggtern, maybe the best way forward to maintain backwards compatibility with 3.0.0 is to reintroduce a variable called @nhamilton1980 Could you chime in? |
And maybe the same should be done with |
For shadowtext, it's very strange... I'm sure the error occurs in this vignette: https://github.com/GuangchuangYu/shadowtext/blob/master/vignettes/shadowtext.Rmd and this acutally fails in and after reprex here: https://gist.github.com/yutannihilation/4f33a397a4fbedb8bf00dca9c6a0d12a |
I suspect shadowtext is the same problem as ggridges. It uses an aesthetic called |
Ah, you are right. The error is basically this (though I'm not sure what happens when scales::alpha(NULL, c(NA, NA))
#> Error in col[, rep(1, length(alpha)), drop = FALSE]: subscript out of bounds Created on 2018-09-27 by the reprex package (v0.2.1) |
You are right. I got it; Since |
For the packages that fail on I'm not sure what the purpose of such code is, but a workaround would be to set library(ggplot2) # github master
ggplot(iris, aes(Sepal.Length)) +
geom_density() + scale_fill_manual(name = "abc")
#> Error in manual_scale(aesthetics, values, ...): argument "values" is missing, with no default
ggplot(iris, aes(Sepal.Length)) +
geom_density() + scale_fill_manual(name = "abc", values = NULL) Created on 2018-09-26 by the reprex package (v0.2.0). |
I've made a PR to fix ggtern: #2913 This should also fix BloodCancerMultiOmics2017 and tricolore. I still need to investigate ggridges some more. Some things aren't working yet as expected. Once I've figured things out, I think it would be a good idea to write a blog post about best practices for non-standard aesthetics, so that we don't end up with a mess where everybody does something different. I'm glad that so far very few package developers seem to have tried to do this. |
I have fixed ggridges and it is on its way to CRAN. In the mean time, here are notes on porting non-standard aesthetics from 3.0.0 to 3.0.1 and best practices for using non-standard aesthetics going forward. Notes: ggplot2 has always supported both British and American spelling for the word "colour". However, there was no systematic support for alternative types of spelling in the ggplot2 internals. With the release of ggplot2 3.0.1, ggplot2 always uses British spelling internally, and any aesthetics that contain the word "color" are automatically translated into strings containing "colour". (For example, First, if you have written a geom that defines British and American versions of your aesthetic, you may get warnings about duplicated aesthetics in ggplot2 3.0.1. Going forward, you must only list the British spelling in default_aes <- aes(point_colour = "red") (If you list the American spelling, it is internally converted to British spelling.) For backwards compatibility with 3.0.0 or earlier, you can provide the American spelling as an optional aes: optional_aes <- c("point_color") Second, in the drawing code of your geom, the data frame will now hold a column named using the British spelling. However, for backwards compatibility with 3.0.0, you can write something lilke: grid.gpar(col = data$point_color %||% data$point_colour) This will use the American spelling if provided and the British spelling otherwise. The same construct can be used to make your geom use the standard grid.gpar(col = data$point_color %||% data$point_colour %||% data$colour) For this to work, the default for default_aes <- aes(point_colour = NULL) Finally, it is a good idea to define default scales for any new aesthetics you define. For ggplot2 3.0.1 or later, you only need to define a scale for scale_point_colour_discrete <- function(...) scale_colour_hue(aesthetics = "point_colour", l = 40, ...) For ggplot2 3.0.0 or earlier, you additionally need to define scale_point_color_discrete <- function(...) scale_colour_hue(aesthetics = "point_color", l = 40, ...) |
This comment has been minimized.
This comment has been minimized.
Already sent an email to the maintainer yesterday, so that’s done. |
Ok, let's plan for a release on Oct 10? |
Works for me. |
Would someone mind putting together a PR that adds it to |
Sorry for missing the release goal by two weeks. Before I re-kick off the process tonight/tomorrow, is there anything I should know? |
From my side, there's only PR #2942 that you could consider merging. You suggested that we may want to do this before the release, to close #2938. And, apparently there are now Travis issues (#2957) that haven't been resolved, due to changes in vdiffr and devtools. Not sure whether they need to be resolved before a release, but until they're resolved any future merge will fail the Travis checks. |
Thanks @clauswilke — I've merged those PRs and added a GITHUB_PAT so the travis failures should hopefully be fixed soon. I notice one missing piece is that we don't have an updated |
Can you add me to the project so I can start a new branch? I'll rerun today with a longer timeout (see below for prelim results and DB is at https://www.dropbox.com/s/llilyu97detb5xv/data.sqlite?dl=0). Spoiler alert: We checked 2338 reverse dependencies (1971 from CRAN + 367 from BioConductor), comparing R CMD check results across CRAN and dev versions of this package.
Issues with CRAN packages are summarised below. New problems(This reports the first line of each new failure)
Failed to check
|
Added you, @topepo! ✔️ |
@topepo don't worry about running with a longer time out — given that >2000 packages didn't have problems I think we can assume we didn't accidentally introduce any regressions. @thomasp85 can you please look into the lime issue? Would someone else mind looking into the postal and FLightR issues? |
@topepo Do we have the updated @hadley The packages lime and FLightR had issues the last time and I looked into it then. For lime, it looked like a network error. The relevant code needs to download data to run, and it worked just fine on my machine with ggplot2 master. Not sure why it reliably breaks in revdepcheck, though. For FLightR, the problem was with the changes to the google map API, specifically the new authentication requirement they added. Again, not sure why it shows up as a new problem in revdepcheck, it should break for old ggplot2 also. |
Just checked in. |
@clauswilke that's perfect - thanks! |
Ok, now that I have the new lime is the same version as in the previous revdepcheck, and the error looks similar as before (network error, fails to download a dataset it needs). FLightR actually has released a new version that has addressed the ggmap issues. The problem there now also seems to be a network error ( |
You can certainly ignore lime |
It was just accepted by the CRAN bot! Thanks everyone for your hard work on this 🎉 |
Any volunteers to work on the blog post? I'm currently attempting to get travis to build the docs automatically. |
Is there some convenient mechanism to work on it collaboratively? At a minimum I could provide some materials related to the parts I worked on. |
Oh, let me PR as far as I've gotten, and you can modify as you like |
I was just wondering whether we can close this issue and I noticed that we haven't done the last item of the check list: Add link to blog post in pkgdown news menu @batpigandme Is this something you could do? |
@clauswilke Yup — not quite sure that's done, though, so I'm not gonna tick it off just yet #3033 |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Issues to resolve before release:
summarize_layout
does not return final range values #2895 (brushing in shiny doesn't work forcoord_trans()
)PRs to complete before release:
summarize_layout
does not return final range values #2895, has been rewritten to not introduce breaking changes)Prepare for release:
devtools::check_win_devel()
rhub::check_for_cran()
revdepcheck::revdep_check(num_workers = 4)
email.yml
thenrevdepcheck::revdep_email_maintainers()
Perform release:
devtools::check_win_devel()
(again!)devtools::submit_cran()
Wait for CRAN...
pkgdown::build_site()
Template from r-lib/usethis#338
The text was updated successfully, but these errors were encountered: