Skip to content

Add setdroplevels() to replace droplevels(in.place=TRUE) #6014

@MichaelChirico

Description

@MichaelChirico
          Let's add setdroplevels then. We could have dot prefixed non exported function that had copy art and then exported ones that goes via this .droplevels

Originally posted by @jangorecki in #5907 (comment)

We'll need to go through a deprecation cycle for droplevels(in.place=TRUE), but we should return to the principle that only set* functions and := can do in-place modification.

Luckily, I don't see any usage of this on GitHub, so we don't need to worry too much about breaking downstreams:

https://github.com/search?q=lang%3AR+%2Fdroplevels%5B%28%5D%2F+%2Fin%5B.%5Dplace%5Cs*%3D%2F+-path%3Afdroplevels.R&type=code

Therefore I recommend we start the deprecation cycle in 1.16.0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions