Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnamed elements in partially named lists get named with how = "names" #13

Closed
JorisChau opened this issue Jun 1, 2023 · 1 comment
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JorisChau
Copy link
Owner

JorisChau commented Jun 1, 2023

For partially named lists, how = "names" currently replaces the names of previously unnamed elements (not satisfying the condition argument) by blank ("") names:

x <- list(list(a = 1, b = 2, c = 3))
names(x)
#> NULL

y <- rrapply(x, condition = \(x, .xname) .xname == "b", f = \(x) "b", how = "names")
names(y)
#> [1] ""

Expected behavior: x and y should remain identical.

@JorisChau JorisChau added the bug Something isn't working label Jun 1, 2023
@JorisChau JorisChau self-assigned this Jun 1, 2023
@JorisChau JorisChau added this to the v1.2.7 milestone Jun 1, 2023
JorisChau added a commit that referenced this issue Jun 26, 2024
@JorisChau
Copy link
Owner Author

fixed in cran-release v1.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant