Skip to content

Setdroplevels for in-place removal of unused levels#6316

Merged
MichaelChirico merged 6 commits intomasterfrom
setdroplevels
Jul 30, 2024
Merged

Setdroplevels for in-place removal of unused levels#6316
MichaelChirico merged 6 commits intomasterfrom
setdroplevels

Conversation

@MichaelChirico
Copy link
Copy Markdown
Member

Closes #6014

Tests feel a bit sparse, but I think we're basically covered by existing droplevels.data.table() tests, didn't know how much time to spend on redundant testing.

Given that setdroplevels() is a pretty easy drop-in replacement for droplevels(in.place=TRUE), and we didn't find any downstream usage, I didn't add an opt-out mechanism for this, LMYK if you think we should be more cautious.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 27, 2024

Comparison Plot

Generated via commit 52c995a

Download link for the artifact containing the test results: ↓ atime-results.zip

Time taken to finish the standard R installation steps: 11 minutes and 28 seconds

Time taken to run atime::atime_pkg on the tests: 5 minutes and 57 seconds

@MichaelChirico MichaelChirico added this to the 1.16.0 milestone Jul 28, 2024
@ben-schwen
Copy link
Copy Markdown
Member

LGTM, but would like to hear @jangorecki opinion on the depcrecation part.

Copy link
Copy Markdown
Member

@jangorecki jangorecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Warning is fine.

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.

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

3 participants