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

vec_as_names() needs better error message #882

Closed
hadley opened this issue Mar 5, 2020 · 0 comments · Fixed by #898
Closed

vec_as_names() needs better error message #882

hadley opened this issue Mar 5, 2020 · 0 comments · Fixed by #898
Assignees
Labels

Comments

@hadley
Copy link
Member

hadley commented Mar 5, 2020

vctrs::vec_as_names(c("a", "a", "b", "b"), repair = "check_unique")
#> Error: Names must be unique.

Created on 2020-03-05 by the reprex package (v0.3.0)

Suggestion:

vctrs::vec_as_names(c("a", "a", "b", "b"), repair = "check_unique")
#> Error: Names must be unique. Repeated names:
#> * "a" (1, 2)
#> * "b" (3, 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants