Skip to content

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

@rossellhayes

Description

@rossellhayes

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."

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions