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

equality in if clause currently failing ("Error in invert_(e) : == not supported") #17

Closed
edwindj opened this issue May 20, 2019 · 3 comments
Assignees

Comments

@edwindj
Copy link
Member

edwindj commented May 20, 2019

Currently the following is failing

library(errorlocate)
rules <- validator(if (a == 0) b == 0)
locate_errors(data.frame(a=0, b=1), rules)

and results in

Error in invert_(e) : == not supported
@edwindj
Copy link
Member Author

edwindj commented May 20, 2019

This issues was solved in validatetools, but has to be integrated into errorlocate.
For the time being this can be circumvented by formulating the rules as

rules <- validator(if (a >= 0 && a <=0) b == 0)
locate_errors(data.frame(a=0, b=1), rules)

which works as promised

@edwindj edwindj self-assigned this May 20, 2019
@edwindj
Copy link
Member Author

edwindj commented May 21, 2019

The issue is solved in branch validatetools which will merged with master branch asap

edwindj added a commit that referenced this issue May 21, 2019
@edwindj
Copy link
Member Author

edwindj commented May 21, 2019

Merged into the latest development version

@edwindj edwindj closed this as completed May 21, 2019
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

1 participant