Closed paulb20 closed 1 month ago
I can reproduce this too:
library(ggmosaic)
#> Loading required package: ggplot2
ggplot(data = titanic) +
geom_mosaic(aes(x = product(Class, Age), fill = Survived))
#> Warning: `unite_()` was deprecated in tidyr 1.2.0.
#> Please use `unite()` instead.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
Created on 2022-02-27 by the reprex package (v2.0.1)
packageVersion("ggmosaic")
#> [1] ‘0.3.3’
I confirm the presence of this warning too
I confirm the presence of this warning too.
I get this warning as well, using R 4.2.2., tidyverse 1.3.2 and ggmosaic 0.3.3.
"Warning: unite_()
was deprecated in tidyr 1.2.0.
ℹ Please use unite()
instead.
ℹ The deprecated feature was likely used in the ggmosaic package.
Please report the issue at https://github.com/haleyjeppson/ggmosaic"
This warning is an issue for me as well.
R version 4.2.1 (2022-06-23) ggmosaic version 0.3.3 tidyverse version 1.3.2
This warning occurs in the CRAN version but it's fixed in the dev version.
You can install the updated version using:
# install.packages("devtools")
devtools::install_github("haleyjeppson/ggmosaic")
Thanks for the fix: that's greatly appreciated.
Do you have plans to update the version on CRAN?
I tried the fix above (devtools::install_github("haleyjeppson/ggmosaic")) but it gives me the following error "Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace ‘pkgload’ 1.2.4 is being loaded, but >= 1.3.0 is required
Can someone help me with fixing this, I really need the pretty Mosaic plot for my project.
@PiyuminbKM looks like you need to update your pkgload
installation. try this:
install.packages('pkgload')
devtools::install_github("haleyjeppson/ggmosaic")
This has been fixed for 2 years. Is a new release around the corner? :smile:
Warning message:
unite_()
was deprecated in tidyr 1.2.0. Please useunite()
instead.Still works for now.