Skip to content
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

Deprecated usage of gather_() from {tidyr} #513

Closed
fkohrt opened this issue Nov 15, 2022 · 0 comments · Fixed by #516
Closed

Deprecated usage of gather_() from {tidyr} #513

fkohrt opened this issue Nov 15, 2022 · 0 comments · Fixed by #516

Comments

@fkohrt
Copy link

fkohrt commented Nov 15, 2022

When using ggpubr::ggpaired(), I get a deprecation error. For example, when running the following code:

withr::with_options(list(lifecycle_verbosity = "error"), {
  sleep |>
    tidyr::pivot_wider(
      names_from = group,
      values_from = extra,
      names_prefix = "group"
    ) |>
    ggpubr::ggpaired("group1", "group2")
})

I get the following warning:

Error:
! `gather_()` was deprecated in tidyr 1.2.0.
ℹ Please use `gather()` instead.
---
Backtrace:
 1. ggpubr::ggpaired(...)
 3. tidyr::gather_(...)
 4. lifecycle::deprecate_warn("1.2.0", "gather_()", "gather()")
 5. lifecycle:::deprecate_stop0(msg)
Run `rlang::last_trace()` to see the full context.

It seems tidyr::gather_() has been deprecated, so it might be better to use tidyr::pivot_longer().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant