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

Names check should have a specific message if object is unnamed #129

Open
rossellhayes opened this issue Nov 24, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@rossellhayes
Copy link
Contributor

If an object is unexpectedly unnamed, the message lists the names it expected.

library(tblcheck)
vec_grade_names(letters, rlang::set_names(letters))
#> <gradethis_graded: [Incorrect]
#>   Your result should have the names `a`, `b`, `c`, and 23 more.
#> >

Created on 2022-11-23 with reprex v2.0.2

It would be more helpful to have a specific messages for "I expected your result to be named." and "I didn't expect your result to be named."

@rossellhayes rossellhayes added the enhancement New feature or request label Nov 24, 2022
@rossellhayes rossellhayes self-assigned this Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant