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

compare.numeric message fix for named/unnamed objects #313

Closed
wants to merge 1 commit into from
Closed

compare.numeric message fix for named/unnamed objects #313

wants to merge 1 commit into from

Conversation

perryjer1
Copy link

When calling compare.numeric to compare numerics that were equal except for names, the message from all.equal (via attr.all.equal) was being dropped. See the test_compare.r additions for examples. The solution I put in compare.r was to just add in the original message so the user can at least see it, but I don't know if this is the best way to handle it.

@hadley
Copy link
Member

hadley commented Feb 19, 2016

I fixed it by totally rewriting compare.numeric - I think it should be a lot more robust now

@hadley hadley closed this Feb 19, 2016
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

Successfully merging this pull request may close these issues.

2 participants