ggmosaic icon indicating copy to clipboard operation
ggmosaic copied to clipboard

Warning from tidyr re unite_() deprecation

Open paulb20 opened this issue 2 years ago • 10 comments

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

Still works for now.

paulb20 avatar Feb 25 '22 11:02 paulb20

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’

GegznaV avatar Feb 27 '22 16:02 GegznaV

I confirm the presence of this warning too

beerda avatar Mar 22 '22 12:03 beerda

I confirm the presence of this warning too.

XiangyunHuang avatar Oct 02 '22 14:10 XiangyunHuang

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

SAuderset avatar Dec 05 '22 10:12 SAuderset

"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

jctourtellotte avatar Jan 11 '23 19:01 jctourtellotte

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")

jpmam1 avatar Jun 19 '23 01:06 jpmam1

Thanks for the fix: that's greatly appreciated.

Do you have plans to update the version on CRAN?

nicholasjhorton avatar Jul 23 '23 23:07 nicholasjhorton

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 avatar Nov 09 '23 18:11 PiyuminbKM

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

Jtrachsel avatar Nov 09 '23 18:11 Jtrachsel

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

averissimo avatar Feb 26 '24 14:02 averissimo