You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My team is running into a possible bug in our purrr programming. We have a nested list with information at various depth levels. We manipulate the nested list to discard/keep certain information. We discovered list elements change in an undesired way when discarding list elements at certain list depths.
My team is running into a possible bug in our purrr programming. We have a nested list with information at various depth levels. We manipulate the nested list to discard/keep certain information. We discovered list elements change in an undesired way when discarding list elements at certain list depths.
Consider the following nested list:
Clearly, we see that the a_4_0 element is a matrix. Now, when we discard element a_5, we see an undesired change to a_4_0:
Somewhere in the discarding process, a_4_0 turns into a vector instead of remaining a matrix. We did not discover the issue at lower depths.
We can convert the vector back into a matrix, but it would be nice if that change did not happen in the first place.
Thank you for the great purrr package!
Created on 2025-01-16 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: