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
In the end, I believe this is a bug in structure(), and I've added a fix to dplyr so that it does not use structure() in the problem from tidyverse/dplyr#5745 but I still believe has_rownames() could work around that quirk.
Thanks. I think the problem really is in structure(), though it might be difficult to fix (or even work as documented, haven't checked).
I also remember this worked differently in older versions of R. With current R 4.0, we could indeed tweak the detection of this case and check the class of .row_names_info() instead:
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
Activity
krlmlr commentedon Feb 12, 2021
Thanks. I think the problem really is in
structure(), though it might be difficult to fix (or even work as documented, haven't checked).I also remember this worked differently in older versions of R. With current R 4.0, we could indeed tweak the detection of this case and check the class of
.row_names_info()instead:Created on 2021-02-12 by the reprex package (v1.0.0)
Need to review what the behavior looks like in R 3.3 .
romainfrancois commentedon Feb 12, 2021
Yeah, the underlying problem is here: https://github.com/wch/r-source/blob/b30641d3f58703bbeafee101f983b6b263b7f27d/src/main/attrib.c#L71
Maybe it will be picked up eventually in R, but in the meantime,
tibblecould be defensive.Merge pull request #862 from tidyverse/b-852-has-rownames
github-actions commentedon Feb 24, 2022
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.