You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The upset_themes variable is instantiated upon package build instead of package load.
The bug is not that terrible, one just has to rebuild the package with the intended version of ggplot2, but it is hard to pin down what is going on.
Code to reproduce
# install ggplot2 release candidate# remotes::install_github("tidyverse/ggplot2", ref = remotes::github_pull("5592"))
library(ggplot2)
packageVersion("ggplot2")
#> [1] '3.5.0'
library(ComplexUpset) # install before ggplot2movies= as.data.frame(ggplot2movies::movies)
genres= colnames(movies)[18:24]
upset(movies, genres, name='genre', width_ratio=0.1)
#> Error in `plot_theme()` at ggplot2/R/plot-build.R:178:3:#> ! The `legend.text.align` theme element is not defined in the element#> hierarchy.
Expected behavior
One expects this code to just work without the error about the deprecated theme argument. I think it might be a feasible option to make a function that generates the contents of upset_themes and run this function in .onLoad.
Describe the bug
The
upset_themes
variable is instantiated upon package build instead of package load.The bug is not that terrible, one just has to rebuild the package with the intended version of ggplot2, but it is hard to pin down what is going on.
Code to reproduce
Created on 2024-01-17 with reprex v2.1.0
Expected behavior
One expects this code to just work without the error about the deprecated theme argument. I think it might be a feasible option to make a function that generates the contents of
upset_themes
and run this function in.onLoad
.Context (required)
ComplexUpset version: 1.3.3
R version details
R session information
The text was updated successfully, but these errors were encountered: