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

error list for verify function #46

Closed
elong0527 opened this issue Apr 21, 2017 · 2 comments
Closed

error list for verify function #46

elong0527 opened this issue Apr 21, 2017 · 2 comments

Comments

@elong0527
Copy link

Is it possible to output an error list for verify function as assert does?

It will be helpful to have the index and all used variables in the expression/function.

@tonyfischetti
Copy link
Owner

Sorry. I thought I responded to this a while ago.
I can't do that with verify because it's a great deal more general that assert, etc...
For example, verify can ask whether the number of rows is above a certain value, or whether TRUE is TRUE.
In these cases, and most others that necessitate verify and not assert/etc, row numbers wouldn't make sense.
Is there a way you can re-write what you currently have as verify as assertr/etc... ?

@tonyfischetti
Copy link
Owner

I have great news :)
I implemented something that I think would work for you in commit b18be10
It includes and index just like you wanted for verify to match the error data.frames from the rest of the verbs. The error data.frames thing is pretty cool! You should check it out :)
I'll be submitting to CRAN shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants