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

Implement mechanism for function to return error message #51

Closed
brodieG opened this issue Jul 18, 2017 · 0 comments
Closed

Implement mechanism for function to return error message #51

brodieG opened this issue Jul 18, 2017 · 0 comments

Comments

@brodieG
Copy link
Owner

brodieG commented Jul 18, 2017

This is in the context of something like:

vet(numeric() && all_bw(., 0, 1)

where it would be nice if there was a mechanism to integrate the all_bw message. Right now we just get:

unitizer> vet(all_bw(., 0, 2), 1:3 + .01)
[1] "`all_bw(1:3 + 0.01, 0, 2)` is not TRUE (is \"character\" instead of a \"logical\")"

Might defer this to 0.2. One of the challenges here is that we need some kind of string structure that is meaningful standalone and also in the context of a vetr error.

One possible mechanism is to attach as an attribute to a FALSE return value. A little reluctant to assume that any string is just an error message (e.g. what about all.equal?).

@brodieG brodieG added this to the 0.1.1 milestone Jul 18, 2017
brodieG added a commit that referenced this issue Sep 17, 2017
Fix #81, Fix #77, Fix #76, Fix #73, Fix #70,
Fix #69, Fix #65, Fix #64, Fix #61, Fix #59
Fix #56, Fix #51, Fix #48, Fix #47, Fix #46,
Fix #45, Fix #43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant