haleyjeppson / ggmosaic

Mosaicplots in the ggplot2 framework
https://haleyjeppson.github.io/ggmosaic/
168 stars 21 forks source link

Warning from tidyr re unite_() deprecation #60

Closed paulb20 closed 1 month ago

paulb20 commented 2 years ago

Warning message: unite_() was deprecated in tidyr 1.2.0. Please use unite() instead.

Still works for now.

GegznaV commented 2 years ago

I can reproduce this too:

image

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’
beerda commented 2 years ago

I confirm the presence of this warning too

XiangyunHuang commented 2 years ago

I confirm the presence of this warning too.

SAuderset commented 1 year ago

I get this warning as well, using R 4.2.2., tidyverse 1.3.2 and ggmosaic 0.3.3.

jctourtellotte commented 1 year ago

"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

jpmam1 commented 1 year ago

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")
nicholasjhorton commented 1 year ago

Thanks for the fix: that's greatly appreciated.

Do you have plans to update the version on CRAN?

PiyuminbKM commented 12 months ago

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.

Jtrachsel commented 12 months ago

@PiyuminbKM looks like you need to update your pkgload installation. try this: install.packages('pkgload') devtools::install_github("haleyjeppson/ggmosaic")

averissimo commented 8 months ago

This has been fixed for 2 years. Is a new release around the corner? :smile: