Skip to content

tidyr

1.3.2Package record

Tidy Messy Data

2,516packages dependsuggested by 699
15.5Mdownloads / year
99.2%test coverage
13/13flavors OK

Overview

About

Tools to help to create tidy data, where each column is a variable, each row is an observation, and each cell contains a single value. 'tidyr' contains tools for changing the shape (pivoting) and hierarchy (nesting and 'unnesting') of a dataset, turning deeply nested lists into rectangular data frames ('rectangling'), and extracting values out of string columns. It also includes tools for working with missing values (both implicit and explicit).

Changes in 1.3.2
  • fill() gains a .by argument as an alternative to dplyr::group_by() for applying the fill per group, similar to nest(.by =) and dplyr::mutate(.by =) (@olivroy, #1439).
  • expand_grid() gains a new .vary argument, allowing users to control whether the first column varies fastest or slowest (#1543, @JamesHWade).
  • unnest_longer() now places indices_to columns before value columns (#1486, @andrewshibata).
  • unchop() produces a more helpful error message when columns cannot be cast to ptype (@mgirlich, #1477).
  • unite() no longer errors if you provide a selection that doesn't select any columns. Instead, it returns a column containing the empty string (#1548, @catalamarti).
  • pivot_wider_spec() now throws a more informative error on non-data frame inputs (@catalamarti, #1510).
Show all changes in 1.3.2Hide the rest of the changes in 1.3.2
  • Fixed an internal error in pivot_wider() (#1609, @krlmlr).
  • R >=4.1.0 is now required, in line with the tidyverse standard of supporting the previous 5 minor releases of R (#1613).
  • The base pipe is now used throughout the documentation (#1613).
  • tidyr now requires dplyr >=1.1.0 (#1568, @catalamarti).
  • tidyr is now compliant with R's C API (#1618).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.6 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • NOTE12 OK, 1 NOTE2026-06-08
  • OK14 OK2026-03-30
Show 1 earlier changeHide 1 earlier change
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.3.2
READMEYes · 489 wordsVignettesYes · 6 · dynamicNEWSYes · 100% structured · mentions 1.3.2Citation fileNoWebsiteYes · pkgdown
Help pages
49 (12 internal)includes a package overview page
Examples that run
100%31 run in a plain check
Exported functions with examples
86%
Documented parameters
90%
Return-value docs
12%
Help pages citing references
0%

Downloads

15.5M
CRAN downloads in the past year
Rank #43 · ~42.3K/day · ~1.3M/mo
Daily download trend is not available in this view yet.
1.1M30 days
3.4M90 days
15.5M1 year
Compare downloads with other packages →
Also on229.1K r2u139 autocran1.5M conda_forge20.7K c2d4u

Repository

1,445Stars
417Forks
46Open issues
14Open PRs
32Releases
1,429Commits
140Commit identities
rtidy-data
1,429 commits · Last activity 2026-06-02 · +0.2% stars, 30d · Default branch at 1.3.2.9000, ahead of CRAN 1.3.2 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
76%
Median days to close, 50 most recently updated closed issues
94
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-09-24 · 1,3972026-10-21 · 1,445
PracticesBeta

19 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/tidyverse/tidyr on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (5)
Code of conductContributing guideIssue templatesCODEOWNERSSupport guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-06-02 · The repository has a site deploy workflow

pkgdown site last built 2026-01-09

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (4)
Lint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-09-19
    Commits: at least 1 crediting it in the message
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
19 external dependencies (excludes base and recommended)

Installing tidyr adds 19 packages (11 with compiled code, 17 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 4.1.0
LinkingTo (1)
Enhances (0)
none

Datasets

People & History

People (5)
Author, Maintainer · added in 0.3.0
Author · added in 1.2.0
Author · added in 1.3.0
Contributor · added in 1.3.0
Copyright holder, Funder · added in 1.3.1

Maintainer since 0.1 (2014)

Listed in earlier versions (4)
Show 4 peopleHide 4 people
Hadley Wickham <hadley@rstudio.com> [aut, cre] RStudio [cph]
no longer listed · 0.2.0
RStudio
no longer listed · 0.3.0 to 1.2.1
no longer listed · 0.7.0 to 1.1.1
Posit, PBC
no longer listed · 1.3.0
Releases (32)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.2Latest
    record
    2025-12-19 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.1
    record
    2024-01-24 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.0
    record
    2023-01-24 · diff ↗ ·
    added 5 exports
    separate_longer_delim, separate_longer_position, separate_wider_delim, separate_wider_position, separate_wider_regex
  • 1.2.1
    record
    2022-09-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.0
    record
    2022-02-01 · diff ↗ ·
    added 3 exports
    all_of, any_of, check_pivot_spec
  • 1.1.4
    record
    2021-09-27 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.1.3
    record
    2021-03-03 · diff ↗
  • 1.1.2
    record
    2020-08-27 · diff ↗
  • 1.1.1
    record
    2020-07-31 · diff ↗
  • 1.1.0
    record
    2020-05-20 · diff ↗
Show 29 earlier eventsHide 29 earlier events
  • 1.0.3
    record
    2020-05-07 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.2
    record
    2020-01-24 · diff ↗
  • 1.0.0
    record
    2019-09-12 · diff ↗ ·
    added 29 exports
    as_tibble, build_longer_spec, build_wider_spec, chop, contains, ends_with, everything, expand_grid, hoist, last_col, matches, nest_legacy, num_range, one_of, pack, pivot_longer, pivot_longer_spec, pivot_wider, pivot_wider_spec, starts_with, tibble, tidyr_legacy, tribble, unchop, unnest_auto, unnest_legacy, unnest_longer, unnest_wider, unpack
  • R
    R 3.6.0 released · 2019-04-26
  • 0.8.3
    record
    2019-03-02 · diff ↗
  • 0.8.2
    record
    2018-10-28 · diff ↗
  • 0.8.1
    record
    2018-05-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.8.0
    record
    2018-01-29 · diff ↗ ·
    added 1 export
    uncount
  • 0.7.2
    record
    2017-10-17 · diff ↗
  • 0.7.1
    record
    2017-09-01 · diff ↗
  • 0.7.0
    record
    2017-08-16 · diff ↗
  • 0.6.3
    record
    2017-05-15 · diff ↗
  • 0.6.2
    record
    2017-05-04 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.6.1
    record
    2017-01-10 · diff ↗
  • 0.6.0
    record
    2016-08-12 · diff ↗ ·
    added 4 exports
    crossing_, drop_na, drop_na_, nesting_
  • 0.5.1
    record
    2016-06-14 · diff ↗
  • 0.5.0
    record
    2016-06-12 · diff ↗ ·
    added 2 exports
    separate_rows, separate_rows_
  • R
    R 3.3.0 released · 2016-05-03
  • 0.4.1
    record
    2016-02-05 · diff ↗
  • 0.4.0
    record
    2016-01-18 · diff ↗ ·
    removed 1 export
    seq_range
    added 3 exports
    crossing, full_seq, nesting
  • 0.3.1
    record
    2015-09-10 · diff ↗
  • 0.3.0
    record
    2015-09-08 · diff ↗ ·
    added 8 exports
    %>%, complete, complete_, fill, fill_, nest, nest_, replace_na
  • 0.2.0
    record
    2015-09-08 · diff ↗ ·
    added 5 exports
    expand, expand_, seq_range, unnest, unnest_
  • R
    R 3.2.0 released · 2015-04-16
  • 0.1
    record
    2014-07-21
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2014-07-21
Total releases
32 / 12 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
347 KB / 19 files
Download size
790 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tidyr")
Wickham, H., Posit Software, PBC, Girlich, M., Ushey, K., & Vaughan, D. (2025). tidyr: Tidy Messy Data (Version 1.3.2) [Computer software]. https://doi.org/10.32614/CRAN.package.tidyr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tidyr version 1.3.2 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy