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

Use base pipe in examples #1561

Open
georgestagg opened this issue Jul 22, 2024 · 3 comments
Open

Use base pipe in examples #1561

georgestagg opened this issue Jul 22, 2024 · 3 comments
Labels
documentation feature a feature request or enhancement

Comments

@georgestagg
Copy link
Member

e.g.

tidyr/R/chop.R

Lines 54 to 61 in c6c126a

#' # Unchop --------------------------------------------------------------------
#' df <- tibble(x = 1:4, y = list(integer(), 1L, 1:2, 1:3))
#' df %>% unchop(y)
#' df %>% unchop(y, keep_empty = TRUE)
#'
#' # unchop will error if the types are not compatible:
#' df <- tibble(x = 1:2, y = list("1", 1:3))
#' try(df %>% unchop(y))

@DavisVaughan

This comment was marked as outdated.

@DavisVaughan
Copy link
Member

Need r-lib/usethis#2020 first

@DavisVaughan DavisVaughan added the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Jul 29, 2024
@DavisVaughan DavisVaughan removed the tidy-dev-day 🤓 Tidyverse Developer Day rstd.io/tidy-dev-day label Aug 15, 2024
@DavisVaughan
Copy link
Member

This is actually quite complicated due to needing to support R 3.6 as well right now. If you come across this for TDD, please skip this issue and pick another.

@DavisVaughan DavisVaughan added feature a feature request or enhancement documentation labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants