-
Notifications
You must be signed in to change notification settings - Fork 272
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
modify_depth fails when higher levels have NULLs #655
Comments
vspinu
added a commit
to vspinu/purrr
that referenced
this issue
Mar 18, 2020
vspinu
added a commit
to vspinu/purrr
that referenced
this issue
Mar 26, 2020
Reperex: library(purrr)
aa <- list(a = NULL, b = list(b1 = NULL, b2 = "hello"))
modify_depth(aa, .depth = 2, is.character, .ragged = TRUE)
#> Error in .x[[i]]: subscript out of bounds Created on 2022-08-25 by the reprex package (v2.0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
modify_depth
fails when higher levels have a mix of NULLs and non-NULLs e.g.I would expect
Works when the first level has no NULLs
And btw why is the upper level type-stable, and not the lower level ?
And why is it the same when
.ragged = FALSE
?Thanks!
The text was updated successfully, but these errors were encountered: