-
Notifications
You must be signed in to change notification settings - Fork 29
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
API seems broken after the latest updates in ggplot2 (>= 3.5.0) #195
Comments
Thanks in advance for looking into this! |
Thanks for flagging this so quickly @federicomarini . Can also confirm that two of my packages which depend on
https://master.bioconductor.org/checkResults/3.18/bioc-LATEST/extraChIPs/nebbiolo2-buildsrc.html |
Ok, I think this is a curly one. I ran the following code, noting that setdiff(names(ComplexUpset::upset_default_themes()$default[[1]]), names(formals(theme))) [1] "legend.text.align" "legend.title.align" I wondered if this meant |
Well done in investigating this a bit. |
Thanks. I can't see the BBS picking this up as there's no new version of ComplexUpset to trigger a reinstallation of ComplexUpset. The currently installed version will continue to return the incompatible values from it's call to |
I could not get it fixed with your solution. |
The Bioconductor Build System would like to avoid having to uninstall and reinstall a package manually since this hides what a user sees on their local system. A user with the previously installed would also have to be aware to uninstall and reinstall manually. Ideally ComplexUpset would bump their version forcing a new version install for all users universally if this is indeed all that needed to be done. |
And if this is all, well, I think we can already prep up a "close to fake" PR to have the new version picked up by the related systems 😅 |
FWIW, the suggested solution from @smped worked in my hands. Uninstalling explicitly, installing (from source, dunno if that really helps, but hey, it worked), re-running the example and the functions from my package using that: ✅ |
Thanks @lshep & @federicomarini . I've added a bug catcher to my function so I think I'm OK with this one, but it did seem a bit odd. I'm passing arguments through the dots which I have as valid_theme_args <- names(formals(theme))
dotArgs$themes <- lapply(
dotArgs$themes,
\(x) lapply(x, \(y) do.call("theme", y[names(y) %in% valid_theme_args]))
) Sorry to hear your attempt didn't work either @lisiarend. Hopefully the package authors will be able to help. |
So.... will uninstalling and reinstalling fix this? I am going to try that, because I am also having this issue and I'm mid-dissertation with the use of an UpSet plot being fairly significant in one chunk of the analysis I'm writing up. Is there a nail biting emoji? Edit: uninstalling and reinstalling from source (install.packages("ComplexUpset", type = "source")) worked. The from source was key, as I had tried to uninstall/reinstall through the RStudio GUI and that didn't work. |
Glad it worked @jctourtellotte ! If that did not solve it, you could ideally revert back to the previous ggplot2 version. And/or you can protect yourself from such things with anything on the line of |
Hi all, my R package depends on [...]
Error(s) in re-building vignettes:
--- re-building ‘MiscMetabar.Rmd’ using rmarkdown
Quitting from lines 68-69 [unnamed-chunk-4] (MiscMetabar.Rmd)
Error: processing vignette 'MiscMetabar.Rmd' failed with diagnostics:
The `legend.text.align` theme element is not defined in the element
hierarchy.
--- failed re-building ‘MiscMetabar.Rmd’
[...] |
Hm, not sure you can solve this, "alone". Maybe you can prevent your package from being archived on short term is to point towards this discussion, in the hope they understand it really does not relate to a mishap on your end @adrientaudiere ? |
So what specifically should this package do? |
You mean ComplexUpset? I think the solution proposal that @smped was pointing to is that you Michal would simply issue a new release with a version bump.
I also could not find any better solution so far, but it is worth a try from my point of view. |
Hi @krassowski , I think the real issue has been caused by a quirk in the R ecosystem & the decision within the tidyverse developer community to not enforce backwards compatibility. The simplest fix to me is to push out a version bump which enforces a dependency on ggplot2 v3.5.0, and that should resolve this specific error, although who knows what may be coming in the future. So just a simple change the DESCRIPTION file & everything should be fine from our end. The catch may be in the tests. I forked & tried the above in order to make a pull request, but all tests in |
Thanks @smped and @federicomarini for your comprehensive answer. Maybe I can enforce a dependency on ggplot2 v3.5.0 in my own package DESCRIPTION file. @krassowski do you plan to make a new release enforcing ggplot2 v3.5.0 soon? |
Yes, I can do that over the weekend. |
Very appreciated, Mike, thanks! |
Brilliant. Thanks @krassowski . Much appreciated indeed |
Oh yes, Thanks a lot @krassowski! |
Hi folks, I had submitted ComplexUpset 1.3.6 to CRAN. Fingers crossed. |
It appears that the submission to CRAN was rejected via an automated email because CRAN's link checker thinks that "https://anaconda.org/conda-forge/r-complexupset" does not work (but it does - you can check it yourself):
It is not an error, not even a warning. It is just a note... The
|
Gosh. That seems really weird to get a fail based an a URL in a README! Thanks for working in this over your weekend too & hopefully there's an easy fix. |
I know it is annoying @krassowski , thanks for taking care of this so far. Maybe you can argue that with one email back&forth? I recall once I had an issue (similar, not same) because they did not want me to leave a URL that was redirecting to our institute, but only accepted the direct link. The |
Thanks @krassowski. I was able to resubmit my package by forcing the ggplot2 version in the DESCRIPTION file of my package MiscMetabar. Concerning the url, sometimes, one site may be dead for a little time and that may arise when CRAN is checking your package. This has already happened to me, but for a link to a much less stable site than anaconda.org. Its is strange, especially as the DESCRIPTION file has not changed. I think if you solve the |
Try to fix the [bug](krassowski/complex-upset#195)
Hi again @krassowski, Just following up on this given the pending Bioconductor release. Have you managed to make any progress with CRAN? Thanks |
Describe the bug
After the latest changes introduced by
ggplot2
3.5.0, the API forupset
seems broken.I noticed this behavior as this is triggered in the Bioconductor Build System for my package
GeneTonic
-> https://master.bioconductor.org/checkResults/3.19/bioc-LATEST/GeneTonic/nebbiolo1-checksrc.htmlCode to reproduce
Expected behavior
The plot is not generated, and the screenshot below is generated instead.
Screenshots
Context (required)
ComplexUpset version: 1.3.5
R version details
R session information
The text was updated successfully, but these errors were encountered: