Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…42226) ### Rationale for this change See #42220. Extension type metadata serialization works slightly differently from the general R metadata path: it uses a vctrs::ptype object, which is 0-length with attributes. The sanitization needs to happen on `attributes()`, not the object being serialized. The error was caused because `vctrs_rcrd` has a special `[<-` method, so iterating over it and assigning back in the sanitized version (even if it were the right thing to do) failed. ### What changes are included in this PR? Sanitize the `attributes()` of vctrs ptypes. ### Are these changes tested? yes ### Are there any user-facing changes? other than the bug being fixed, no * GitHub Issue: #42220 Authored-by: Neal Richardson <[email protected]> Signed-off-by: Nic Crane <[email protected]>
- Loading branch information