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

Add a names<- method for vctrs_rcrd #1422

Merged
merged 1 commit into from
Aug 16, 2021

Conversation

DavisVaughan
Copy link
Member

Closes #1419

This is a no-op for NULL names, but otherwise errors. We should reconsider this in the future once we are ready to try and support names on rcrds, but for now this prevents vec_set_names() from corrupting rcrd types.

Copy link
Member

@lionel- lionel- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I thought we had already added that exception!

This is a no-op for `NULL` names, but otherwise errors. We should reconsider this in the future once we are ready to try and support names on rcrds, but for now this prevents `vec_set_names()` from corrupting rcrd types.
@DavisVaughan DavisVaughan merged commit 68e568a into r-lib:master Aug 16, 2021
@DavisVaughan DavisVaughan deleted the fix/rcrd-set-names branch August 16, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vec_set_names(names = NULL) creates invalid rcrd
2 participants