Skip to content

Remove temporary backwards compat support for list() in names_ptypes and values_ptypes of pivot_longer() #1296

@DavisVaughan

Description

@DavisVaughan

See #1291 for even more details.

When we moved from default values of names/values_ptypes = list() to names/values_ptypes = NULL and allowed names_ptypes = list() to mean "use a list ptype for all columns", this caused breakage in extension packages that extended pivot_longer() and still had list() as their default value for these arguments.

So we temporarily special cased a value of list() for these two arguments to be identical to NULL to give the extension packages time to update to the new default. Documentation was updated to mention this special casing, and to state that it was temporary.

We'd like to remove this special casing once the packages are updated so that names_ptypes = list() will again mean "use a list ptype for all columns".

This issue tracks the status of the known packages that have this issue. Once they are all fixed, we can remove the special casing from the code and documentation:

Once these issues are all resolved, revert everything done in this PR #1297

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementpivoting ♻️pivot rectangular data to different "shapes"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions