-
Notifications
You must be signed in to change notification settings - Fork 70
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
Provide friendly_type? #463
Comments
Re the implementation, in general So the syntax would be just a regular function call: abort("`{.arg levels} must be a character vector, not a {friendly_type(levels)}") These functions also do not need to live in cli, btw. For the generic ones it makes sense to live there, but I imagine that some of the would be specific to a package, etc. |
Oh yeah, this would be fine as a function too. I think this particular one belongs in cli because it's so needed in so many places. |
Collection of places we've defined this before:
Somewhat related is I suspect we'll want at least two versions, one for scalars, and one for vectors. |
It'd be nice to be able to write:
abort("`{.arg levels} must be a character vector, not a {.friendly levels}")
And know that the user is going to get something that makes sense to them.
The text was updated successfully, but these errors were encountered: