Skip to content

docs: clarify tibble zero-row recycling#1694

Open
LeonidasZhak wants to merge 1 commit into
tidyverse:mainfrom
LeonidasZhak:codex/document-tibble-zero-row-recycling
Open

docs: clarify tibble zero-row recycling#1694
LeonidasZhak wants to merge 1 commit into
tidyverse:mainfrom
LeonidasZhak:codex/document-tibble-zero-row-recycling

Conversation

@LeonidasZhak

Copy link
Copy Markdown

Fixes #1569.

Summary

  • make the tibble() recycling rules more visible in ?tibble
  • link to the vctrs recycling FAQ
  • add examples showing the zero-row result and .rows workaround for placeholder nested tibbles

Checks

  • Rscript -e 'tools::checkRd("man/tibble.Rd")'\n- git diff --check\n- Rscript -e 'library(tibble); z <- tibble(a = 1, b = tibble()); one <- tibble(a = 1, b = tibble(.rows = 1)); stopifnot(nrow(z) == 0L, nrow(one) == 1L)'\n- R CMD build --no-build-vignettes .\n\nI did not run devtools::document() because devtools/roxygen2 are not installed on this local machine; the generated Rd file is updated in the same commit.

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 this pull request may close these issues.

create tibble with numeric(0) doesn't give same result as NULL column

1 participant